Re: DUMB question
the easiest way is simply:
atom char
char = 't' -- ascii value 116
char += 1 -- ascii value 117, the letter 'u'
Characters are always stored as their ascii value. For example, the
string "test" is actually a sequence:
{116,101,115,116}
So, in your example, y does equal the ascii value of 'C', but so does x.
Greg
Adam Weeden wrote:
> Ok, slap me guys, but I cant remember this for the life of me
> (possibly I never knew it, that happens sometimes :-} ), but how do u
> find the ASCII value of a character? Is it direct assignment?ex.atom
> xinteger y x='C'y=x-- Now does y = ASCII value of 'C'? Thanx for any
> help Adam WeedenWeedenSoft Technologies
|
Not Categorized, Please Help
|
|