Hi All!
I have an issue with a specific text string which I must put
under control 🙂!
In this test case, the GDL object is reading a string directly
from a text file.
These strings are numeric expressions which have to be
printed as plain text, such as (Ex.):
"(PI * 121.67^2 * 130.19) / 360"
These strings were generated by other GDL objects and written to
a .txt file with a list scheme. Upon initial testing, the text variable "math"
kept on "switching" to a real variable, which kept giving the result of the
equation.
My workaround was to "pad" the generated equation so it would start
with a letter - thus forcing the variable to set as text (Ex.):
"A (PI * 121.67^2 * 130.19) / 360"
A STRSUB function is then used to "chop off" the first to characters,
("A ") and returning a nice clean text string as intended.
THIS IS WHERE I NEED HELP:
Using the PRINT command, the pop-up window shows the string
as it should be (see attachment), but when I use the TEXT2 command,
the string gets all messed up and becomes incoherent (Mathematically,
that is...).
I couldn't find any clue as to controlling this - ideas?
Thanks,
Gil