Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Triy to use macro substitution for object.property
Message
From
06/08/1999 18:57:16
 
 
To
06/08/1999 18:31:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00250948
Message ID:
00250965
Views:
14
Christian-

I see. If I may just suggest the following change (you might want to benchmark the speed since it should be faster).
LOCAL ii, mi
FOR ii = 1 TO 12
  FOR mi = 1 TO 5
    STORE EVALUATE("THIS.Chk" + LTRIM(STR(ii)) + ".VALUE") = 1
TO ('THISFORM.ClickF'+ALLTR(STR(ii))+'.Btn'+LTRIM(STR(mi))+'.ENABLED')
  ENDFOR
ENDFOR

>LOCAL ii, mi
>FOR ii = 1 TO 12
>  FOR mi = 1 TO 5
>    lcStrin='THISFORM.ClickF'+ALLTR(STR(ii))+'.Btn'+ALLTR(STR(mi))+'.ENABLED'
>    llResult = EVALUATE("THIS.Chk" + ALLTR(STR(ii)) + ".VALUE") = 1
>    &lcString = llResult
>  ENDFOR
>ENDFOR
Previous
Reply
Map
View

Click here to load this message in the networking platform