1. Converting a String into ASCII

Irv,

Yes, I enter a string.  Yes, the value() function makes that string
numerical.  That's not what I want.

When I reference a variable, the variable contains the ASCII code, and
nothing else.  I'm not articulate, but I do what I mean.

Quoting from the documentation:

 Example 1:   s =3D value("12345"}
              -- s is {GET_SUCCESS, 12345}

Suppose as you suggest I let i =3D s[2].   When I reference i which is s[=
2],
does the interpreter not choke because 12345 is not an ASCII value?

I try the following:

include get.e
sequence s
s =3D value("7")
print(1,s)

Suppose i =3D s[2]
i =3D 7.  I want it to be 55, or whatever the ASCII value for 7 is.

--Alan
 =

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu