I am trying to write a gdl object that detects the ID of the layout it is placed on and then breaks the resulting ID into component strings. e.g. If the ID of layout is A123. I want to break it down into separate strings of "A", "1","2","3". The code I have written works fine with either a global ID, or a regular text string("A123"), but if I set a variable equal to <LAYOUTID> and try to break it down, it doesn't work the same. If I look at the full text of that variable with a text2 output, I see "A123." However, if I use the SPLIT command, or STRSUB command to 'break it down' the way I do with the regular text variable, it breaks out as "<","L","A","Y" instead of "A","1","2","3" Why?
Does anyone know how I can use the layout ID to get the results I want? Or, is there another way to do this that I haven't thought of. I can post the object, but it's still rough.