- Subject: [slang-users] Accessing Functions using an array
- From: Ben Duncan <ben@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 22 Dec 2004 14:27:46 -0600
Is it possible and how would you do it, to set up an
array that contains function names (slang, not C)
like such (pseudo code below):
define functioname_1 { .....}
define functioname_2 { .....}
define functioname_3 { .....}
......
MyArray [10] ;
MyArray[0] = "functioname_1" ;
MyArray[1] = "functioname_2" ;
MyArray[2] = "functioname_3" ;
.....
......
if(SELECTED != 0 )
do MyArray[SELECTED]
..........
What I am trying to do is set an index to functions that the SLAG RAD/IDE
generates. Each FUNCTION is really a "screen" to display. If the application
contains more than one screen you would increment "SELECTED" and then the
next screen would display.
Thanks ...
--
Ben Duncan - VersAccounting Software LLC 336 Elton Road Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
- Hanlon's Razor
_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html
[2004 date index]
[2004 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]