RE: Live Tutoria?

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

Lynn Kilroy wrote:
> 
> I do have a question.  Inkey outputs an integer, which is good because 
> all my filters use the integer values for sorting out the keys.  But 
> this is also bad because I try using ColorLocatePrintTextOnly, and 
> ColorLocatePrintTextOnly, as in QBasic, expects only a string.  How do I 
> fix this?
> 
> Love & Friendship & Blessed Be!
> Lynn Erika Kilroy
> 
> 

In Euphoria, characters are just integers from 0 to 255. Strings are sequences
of characters. The only difference is how you interpret them.

For example, 'A' is the same as the integer 65. You could write an if statement
either way:

if Key = 'A' then puts(1, "It's an A!\n") end if
if Key = 65 then puts (1, "It's still an A!\n") end if


For strings, the sequence {65, 66, 67} is the same as "ABC".

No need for a CHR$() in Euphoria!

--
"The author regrets that he is unable to reconcile himself to the
thoughtful point of view you have expressed. However, it must be kept
in mind that being raised in different cultures and different places can
result in such differences of viewpoint between individuals.
The author is from planet Earth." [author unknown]

j.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu