List Info

Thread: testUnit1.pas(93): Illegal character in input file: ' ' ($A0) --What to do?




testUnit1.pas(93): Illegal character in input file: ' ' ($A0) --What to do?
country flaguser name
United States
2008-03-18 10:45:56

What can I do to find the illegal character in my code?

I copied the text from a richtext viewer so I think I know where it came from but if I can't see it, how can I remove it?

Tom Nesler
Live long!... Code Well!... and Prosper!... V

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
Re: testUnit1.pas(93): Illegal character in input file: ' ' ($A0) --What to d
country flaguser name
United States
2008-03-18 10:52:25

You would have to do a For loop to look for invalid
characters.. if you are trying to find this in a .txt
or .rft file.. you would want to do a ReadLn and check
for the illegal char.. if the char is found.. then I
would do a StringReplace('illeagal Char', '') I hope
this is what you are talking about.. if not then you
would have to explain more as to what error you are
getting so one could help you in determining what the
illegal char is..

--- "Nesler, Thomas J" < tnesler%40amfam.com">tnesleramfam.com> wrote:

> What can I do to find the illegal character in my
> code?
&gt;
> I copied the text from a richtext viewer so I think
&gt; I know where it came from but if I can't see it, how
> can I remove it?
>
> Tom Nesler
&gt; Live long!... Code Well!... and Prosper!... V
>
>
>
> [Non-text portions of this message have been
>; removed]
>
>

__________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs

__._,_.___
.

__,_._,___
Re: testUnit1.pas(93): Illegal character in input file: ' ' ($A0) --What to d
country flaguser name
United Kingdom
2008-03-18 10:54:54

Hi Tom,

$A0 is a line feed character.

Use AdjustLineBreaks() on the text:

http://delphi.about.com/library/rtl/blrtlAdjustLineBreaks.htm

Martin.

__._,_.___
.

__,_._,___
Re: testUnit1.pas(93): Illegal character in input file: ' ' ($A0) --What to d
country flaguser name
United Kingdom
2008-03-18 11:01:07

oops:

I wrote:

> $A0 is a line feed character.

No it isn't. $0A is a line feed.

$A0 is a hard (non-breaking) space character.

Sorry about that.

Martin.

__._,_.___
.

__,_._,___
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )