drosenkranz
Programmer
Hello,
I've got a set of mvars to store .T. or .F. if a value is found in the corresponding field which is constructed in Scan While loo . I can't quite get this to work. The hhmemsid field can be any number between 0 and 15. I need to capture which numbers are in use in the child table's (hhmems.hhmemsid)
&& Initialize logical vrbls
public gl_HHMemID1, gl_HHMemID2, gl_HHMemID3...
strore .F. to gl_HHMemID1, gl_HHMemID2, gl_HHMemID3...
*
locate for psformsid = gn_psformsid
do while psformid = gn_psformid and not eof()
lc_vrblname = EVALUATE("gl_HHMemID" + ALLTRIM(STR(hhmemsid))
&& hhmemsid is an integer field in the table EVALUATE("lc_vrblname"
= .T.
&& This line fails - need to set gl_HHMemID?? = .T. (for all numbers found)
enddo
During the loop how can I set the memory variables (gl_HHMemID##) to .T. ?
Thanks,
Dave
The 2nd mouse gets the cheese.
I've got a set of mvars to store .T. or .F. if a value is found in the corresponding field which is constructed in Scan While loo . I can't quite get this to work. The hhmemsid field can be any number between 0 and 15. I need to capture which numbers are in use in the child table's (hhmems.hhmemsid)
&& Initialize logical vrbls
public gl_HHMemID1, gl_HHMemID2, gl_HHMemID3...
strore .F. to gl_HHMemID1, gl_HHMemID2, gl_HHMemID3...
*
locate for psformsid = gn_psformsid
do while psformid = gn_psformid and not eof()
lc_vrblname = EVALUATE("gl_HHMemID" + ALLTRIM(STR(hhmemsid))
&& hhmemsid is an integer field in the table EVALUATE("lc_vrblname"
&& This line fails - need to set gl_HHMemID?? = .T. (for all numbers found)
enddo
During the loop how can I set the memory variables (gl_HHMemID##) to .T. ?
Thanks,
Dave
The 2nd mouse gets the cheese.