True/False statements with OBJECT variables

new topic     » topic index » view thread      » older message » newer message

If I do something like

object a,b
a="abcdefghijklmnopqrstuvwxyz"
b=gets(0)
If b=a then*
puts(1,"YAY! CORRECT!")
else
puts(1,"BAD!")
end if

*I get a message at this part of the program and it says  (If b != a):
sequences arent equal in length (6 (6 chars) != 26 (26 chars))

The same thing happens when I do something like:

object a,b
a=""
while a="" do --when 'a' changes.
a=gets(0)
b=gets(0)
end while

How do I fix that???? PLEASE HELP ME.
Trivia Program Makers Are Very Ineffective If You Can't Compare String
Variables.

Thanks,
St Qu Man

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu