Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loopin a variable length array
Message
From
23/02/1999 11:23:18
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00189697
Message ID:
00190474
Views:
15
>
>I'm not quite sure I understand all the nuances of this. What I understand is that if the value of a control changes one or more other controls will be impacted by the change. So basically what you have is a logical yes/no situation. If there are less than 33 controls involved, have you thought of using VFP's bitwise operators to track the changes. Assign each control a value based on a power of 2 (1, 2, 4, 8, etc.). When the value one of these controls is changed simply BITOR() its value with a custom property (ie ThisForm.flags = BITOR(ThisForm.flags, This.BitValue)). For an impacted control to find out if a change has been made, use BITAND(ThisForm.flags, This.ControlValue) # 0, where the ControlValue property contains the combined (ORed) values of the control(s) that affect it. Of course, I may not fully understand the nature of the problem, so it could be possible that this might not be a viable solution.

Actually 33 controls is not the limit - you can always use more than one field/property/variable :)

Arnon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform