slang-users mailing list

[2004 Date Index] [2004 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] Accessing Functions using an array


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]