J
Jacco
Hi All,
I am using the writeline function to write some HTML to a file. The
text comes from a number of shapes on the page. This all works fine as
long as the text in the shapes does not contain any special
characters. Some characters in the text make the writeline function
generate an error (Run-time error '5', Invalid procedure call or
argument). I am now looking for a way to determine which characters
are causing this 'bad argument' error.
Does anyone know of a list of illegal characters, and how to eliminate
them, or convert them to legal characters? I have for instance
determined that a 'soft return' (shift enter when entering text) gives
a problem. However, I cannot find this character when exporting the
text. When I do a print.debug of the text, the character shows up as a
'?'. But, when I use the Asc() funtion to determine the character, it
gives me the value 63. Which is in fact the ascii value of the '?'. A
normal '?' does not generate the same error.
In the end, I want to convert all special characters (quotes, <, >,
etc) to their HTML counterparts. If anyone knows of a function that
can do that, I'd be very interested.
Hope this makes some sense, and someone has an idea!
Jacco
Oh, PS: I am using Visio 2003.
I am using the writeline function to write some HTML to a file. The
text comes from a number of shapes on the page. This all works fine as
long as the text in the shapes does not contain any special
characters. Some characters in the text make the writeline function
generate an error (Run-time error '5', Invalid procedure call or
argument). I am now looking for a way to determine which characters
are causing this 'bad argument' error.
Does anyone know of a list of illegal characters, and how to eliminate
them, or convert them to legal characters? I have for instance
determined that a 'soft return' (shift enter when entering text) gives
a problem. However, I cannot find this character when exporting the
text. When I do a print.debug of the text, the character shows up as a
'?'. But, when I use the Asc() funtion to determine the character, it
gives me the value 63. Which is in fact the ascii value of the '?'. A
normal '?' does not generate the same error.
In the end, I want to convert all special characters (quotes, <, >,
etc) to their HTML counterparts. If anyone knows of a function that
can do that, I'd be very interested.
Hope this makes some sense, and someone has an idea!
Jacco
Oh, PS: I am using Visio 2003.