Code:
DEFINE POPUP quicksetst SHORTCUT RELATIVE
USE CAD00!ustat
PUBLIC nustats as Character
FOR x=1 TO RECCOUNT()
USE CAD00!ustat
GOTO x IN ustat
nustats=ustat.name
DEFINE BAR x OF quicksetst PROMPT ALLTRIM(ustat.name)
ON SELECTION BAR x OF quicksetst do setstat with nUnit,name,""
ENDFOR
-----
Does anybody see any issue with the above code? When it comes time to run the command "do setstat with nUnit, name -- nUnit is a public variable set in another form, "name" is a field in a table called "ustat" inside CAD00
Thanks!