Text fields with <CR> <LF>

K

Kamil Dursun

The Textn fields of a task or a resource do not accept special characters as
<CR> or <LF>.

Is there a way to make these fields accept the special characters?

Thanks
Kamil
 
K

Kamil Dursun

Thank you Jack,

Where can I find which characters are allowed in a Textn field and if
possible, a routine that strips the text of the unwanted characters?

Kamil
 
J

JackD

Any ascii text is allowed. It is just the way that it is interpreted (or not
in this case) the is the problem You can put <CR> in the field, but nothing
will happen with it.
You could write a routine to strip out anything you like. You can use
functions like instr and other string functions (left, right, trim) to find
and remove things. You have to decide what is unwanted though.
 
K

Kamil Dursun

OK. It's just that I copy some text to Textn variables using VBA. If the
original text contains special characters such as <CR>, <LF>, <TAB> then I
get an error message.

I got round my problem by using the following line(s):

Str=replace(Str,vbCr,";")
Str=replace(Str,vbLf,";")
Str=replace(Str,vbTab,";")
Task1.Text6 = Str

It is a bit heavy but works. The special characters become ";"

Thanks again
Kamil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top