Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>getvar() - get variable name associated to get # <nn></b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     getvar() - get variable name associated to get # <nn>
  Usage:    <string> = getvar(<num>)
  Params:   integer <num> - the get number in the get stack, as defined
            by the order which the gets appear in your program.
  Returns:  a string equal to the name of the variable that is
            associated with get number <num>.

 ---------------------------------- Example ---------------------------------

                 set key 28 to poptest
                 @ 10,0 say "First Name: " get Fname   && get #1
                 @ 11,0 say "last Name : " get Lname   && get #2
                 @ 12,0 say "Company...: " get Cname   && get #3
                 read

                 proc poptest
                 para d1,d2,d3

                     @ 0,0 say getvar(1)     && prints FNAME
                     @ 1,0 say getvar(2)     && prints LNAME
                     @ 2,0 say getvar(3)     && prints CNAME
                     @ 3,0 say getvar(4)     && prints "" (NULL)

                 return

  Note:     This function is similar to readvar(), but it can return the
            variable name of ANY get that is currently active

See Also: numgets() active() activate()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson