a string question
|
09-06-2017, 11:49 AM
Post: #1
|
|||
|
|||
a string question
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 |
|||
09-06-2017, 01:43 PM
(This post was last modified: 09-06-2017 02:05 PM by Stevetuc.)
Post: #2
|
|||
|
|||
RE: a string question
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" |
|||
09-06-2017, 07:19 PM
Post: #3
|
|||
|
|||
RE: a string question
That's what I was looking for....Thanks
-D |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)