FUNCTION Main()
LOCAL GetList := {}, nCtr, cField
USE test NEW
FOR nCtr := 1 TO FCount()
cField := FieldName(nCtr)
&cField := FieldGet(nCtr) // <- you missed this
@ nCtr,1 DCSAY cField GET &cField
NEXT
DCREAD GUI ADDBUTTONS FIT
RETURN NIL
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
FUNCTION Main()
LOCAL GetList := {}, nCtr, cField
USE test NEW
FOR nCtr := 1 TO FCount()
cField := "test->"+FieldName(nCtr)
@ nCtr,1 DCSAY cField GET &cField
NEXT
DCREAD GUI ADDBUTTONS FIT
RETURN NIL
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."