Re: Convert ASCII code to equivalent numerical value

new topic     » goto parent     » topic index » view thread      » older message » newer message
alrobnett said...

Thanks, Chris and Pete. I finally found the pertinent info in the manual by searching for "character". Interestingly, the manual states that the single quotes make it possible to use the character without having to know the ASCII code. I went the other way around, which seems clearer. It is not obvious to me why god has a preference.

Neither He nor the interpreter care.

This does, in some small way, help you when you later look at your code. Using the single quotes around a character indicates to you that you meant to deal with characters, not numbers, per se.

And, of course, if they ever decide to change the ASCII codes... well, you'd be prepared :)

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

Search



Quick Links

User menu

Not signed in.

Misc Menu