retrieving char from text string

cfleitas shared this question 5 years ago
Answered

Is it possible to retrive characters from a text string?

I mean the following: if I have a text like "AB+CA" is there some way to get the value of the char which occupies the second or third position ?

Comments (2)

photo
1

Is it possible to retrive characters from a text string?

I mean the following: if I have a text like "AB+CA" is there some way to get the value of the char which occupies the second or third position ?


Hi, if :

    text1="AB+CA"

then try :

    Take[text1,2,2]

    Take[text1,3,3]

Cheers. Michel.

photo
1

Is it possible to retrive characters from a text string?

I mean the following: if I have a text like "AB+CA" is there some way to get the value of the char which occupies the second or third position ?


Another method:

http://wiki.geogebra.org/en...

© 2020 International GeoGebra Institute