by Joe <joe@[EMAIL PROTECTED]
>
Dec 10, 2007 at 10:20 AM
Alan wrote:
> Joe wrote:
>
>> Can some one tell me How to compare 2 strings
>>
>> var
>> s1, s2: string
>>
>> s1:= 'John';
>> s2:= 'john';
>>
>> How could I compare the 2 strings to get a match
>
> if s1 = s2 then
> writeln('strings match');
>
>
> Of course, in your example the test would fail because the case
> doesn't match.
>
Thanks Allen, Then I must be going some thing wrong. Look heres what my
line looks like
s:='john'
if (upcase(r.name) = upcase(s)) then
write('String Matchs');
Every time I do that it errors out on upcase(r.name). It tells me that a
Char has to be there