Dynamic variables
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-11-10 11:20 PM
2004-11-10
11:20 PM
for example:
WHILE i<10 DO
Text2 0,i <prints `HOTSPOT`i>
i=i+1
endwhile
which would produce the following text:
HOTSPOT10
HOTSPOT9
...
HOTSPOT2
HOTSPOT1
i was thinking i could join the string "HOTSPOT" with INT i. i have done something like this in other languages however am not sure if it can be done with GDL. I used a TEXT2 example. however i am looking for a way to take the string that TEXT2 would have displayed and use it an the unique ID for a hotspot.
thank you.
2 REPLIES 2
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-11-11 12:10 AM
2004-11-11
12:10 AM
I think all you need is a counter of sorts in your loop. It's discussed here.
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-11-11 09:25 PM
2004-11-11
09:25 PM
Thank you very much! that helps alot.