HP Forums

Full Version: a string question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I can get a program by doing this.
s:=Programs("TEST");
...returns the program TEST as a string stored in s.
s(i) indexes this string.
Now, what I want to know, is how do you index this program directly without using s.
e.g. I tried Programs("TEST")(i) and (Programs("TEST"))(i) and neither work, as the two braces are interpreted as a multiply.
I can do it in CAS mode but not in Home mode....
How would one do this in Home mode?
Thx
-Donald
Best I could come up with:

ASC(MID(Programs("TEST"),i,1))
ASC returns a vector of length 1 from position i of the string

Eg {69} for the character "E"
That's what I was looking for....Thanks
-D
Reference URL's