General information
Category:
Coding, syntax & commands
Malcom,
Generally you want to avoid the macro substitution, as in &m, because it is very slow compared to name substitution. This becomes especially important in loops.
Try something like this:
MyVar = "Thisform.lAccessed" + ALLT(MyFormNumber)
Assuming MyFormNumber is '3', then ? m yields:
Thisform.lAccessed3
You can then to name substitutions:
STORE .t. TO (MyVar)
>Hi All.
>
>Actually, this is what I'm trying to do.
>
>m = ALLTRIM('lAccessed' + '3')
>*need to do this becuase the '3' changes depending on what the form number it's executed from (in this case it's form #3).
>
>m = 'THISFORM.' + m + ' = .T.'
>
>?m .... && shows THISFORM.lAccessed3 = .T.
>
>EVALUATE('m') does not change the lAccess3 to .T.
>
>What am I missing? It works for procedures and functions;
>i.e. if m equaled THISFORM.DoChanges(3).
>
>As always, thank you for your help.
>
>Mal
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only