Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GetIt Reference Guide - syntax: n_moveget([<getn>|<variablec> [,<getn>|variablec>]]) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Syntax: N_MOVEGET([<getN>|<variableC> [,<getN>|variableC>]])

Reorders the second Get to be in front of the first Get.

Example

@ 1,0 SAY "Last  Name:" GET Mlname
@ 2,0 SAY "First Name:" GET Mfname VALID name()
@ 3,0 SAY "Address   :" GET Maddr
READ
 ...

* Prompt for SSNO only if there is a last name and first name
FUNCTION name
IF !EMPTY(Mlname) .AND. !EMPTY(Mfname)
  IF N_GETNO("Mssno") = 0          && make sure its not already on screen
    @ 2,40 SAY "SSno:" GET Mssno   && currently the last Get
    N_MOVEGET("MSSNO","MFNAME")    && insert it after first name
  ENDIF
ENDIF
RETURN .T.

Notes

After the Get is moved, Get numbers, as returned by N_GETNO(), may be
adusted up or down accordingly, although the total number of Gets remains
the same.

If and invalid Get(s) is specified or if no Gets are active then no action
is taken.

See Also: N_DELGET N_GETNO N_LASTGET

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