dantheinfoman
Programmer
Hello Again!
I've had some success with your help using the EVALUATE function to loop through the fields when populating a listbox. You helped me here:
Now my question is somewhat of the reverse. I'm trying to loop through all these memory variables that will then populate a new record. It says there's a syntax error.
I was trying to use the same method, but I guess Evaluate only works when populating another item, not populating to an evaluated phrase.
Example: One wants to populate memory variables m.Cri1 through m.Cri15. Here's my failed attempt:
Thanks for any advise. You guys are all geniuses!!!
Dan
I've had some success with your help using the EVALUATE function to loop through the fields when populating a listbox. You helped me here:
Now my question is somewhat of the reverse. I'm trying to loop through all these memory variables that will then populate a new record. It says there's a syntax error.
I was trying to use the same method, but I guess Evaluate only works when populating another item, not populating to an evaluated phrase.
Example: One wants to populate memory variables m.Cri1 through m.Cri15. Here's my failed attempt:
Code:
x = 1
FOR i = 1 TO ALEN(aFieldList,1)
IF aFieldList[i,nOperatorE] <> 0 then
**NOT BLANK, IT HAS BEEN USED, SO ADD TO GROUP FILTER RECORD!
EVALUATE(FIELD("m.cri" + ALLTRIM(x))) = aFieldList[i,nFieldE] + ";" + aFieldList[i,nNotE] + ";" + aFieldList[i,nOperatorE] + ";" + aFieldList[i,nCriteriaE]
WAIT WINDOW EVALUATE("m.cri" + ALLTRIM(x))
x=x+1
ENDIF
ENDFOR
Thanks for any advise. You guys are all geniuses!!!
Dan