Code: Select all
// --- Initialize
oGet := {}
aGet := {}
For i := 1 TO 30
AADD(oGet, Nil)
AADD(aGet, Str(i))
Next
// --- Create Gets:
nR := 0; nC := 0
For i := 1 TO 30
nR, nC GET oGet[i] Var aGet[i]
nR += 1
Next
Rafael
Code: Select all
// --- Initialize
oGet := {}
aGet := {}
For i := 1 TO 30
AADD(oGet, Nil)
AADD(aGet, Str(i))
Next
// --- Create Gets:
nR := 0; nC := 0
For i := 1 TO 30
nR, nC GET oGet[i] Var aGet[i]
nR += 1
Next
Code: Select all
(...)
For i := 1 TO 30
nR, nC GET oGet Var cGet
oGet[i] := oGet
cGet[i] := cGet
nR += 1
Next
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL aGet[ 2 ]
LOCAL aVar := { SPACE( 20 ), SPACE( 20 ) }
LOCAL i
DEFINE DIALOG oDlg
FOR i = 1 TO 2
MAKEGET( aGet, aVar, i )
NEXT
ACTIVATE DIALOG oDlg;
CENTER
? aVar[ 1 ], aVar[ 2 ]
RETURN NIL
STATIC FUNCTION MAKEGET( aGet, aVar, n )
@ n, 1 GET aGet[ n ] VAR aVar[ n ]
RETURN NIL