Code: Select all
S = '"ABCD"' ; * That's '-"-ABCD-"-'
T = S[Len(S)-1] ; * T = ABCD" at this point
U = T[1,Len(T)-1] ; * U should = ABCD
V = T[1,Len(T)] ; * V should = ABCD"
(Note that the correct result can be obtained in this case by simply setting U = S[2,Len(S)-2] but keep in mind that's just a solution to this specific instance of a more general problem - how to manipulate strings with quotes in and around them.)
Has anyone encountered this problem with quotes in strings before? If so, how did you work around it?
TIA
tpb