Euphoria ASCII function revisited

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

Actually, torpedo the last function source. This one is more compact and
offers a wider range:

---------------------------------------------------------------------------
include get.e

function ascii_table(atom character)
     sequence valued_result

     valued_result = value(sprintf("%d",character))
     return valued_result[2]
end function

print(1,ascii_table('A'))
---------------------------------------------------------------------------
David Gay
"A Beginner's Guide To Euphoria"
http://www.geocities.com/SiliconValley/Vista/4346

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

Search



Quick Links

User menu

Not signed in.

Misc Menu