Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting changes in control values
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00057294
Message ID:
00057369
Vues:
36
--snip--
>>>
>>>Ok, now having time I would extend on topic, trying to beat you again :)
>>>IMHO, the nice solution is to have form property-array declared in Form.Init:
>>>Dimension This.Pageflags(This.Pageframe1.PageCount)
>>>Then in any ControlX.InteractiveChange event I would issue:
>>>Thisform.Resetpageflags[This.Parent.PageOrder]=.t.
>>>So, when it's going to refresh, you just scan the array for .t. elements and refresh particular page using Pages property.
>>>Thisform.Pageframe1.Pages(n)
>>
>>Ah, a debate ;-) There are things to be said for both methods. However, at least from an abstract point, it's actually the same solution. My "array" is limited to 32 elements, but uses memory more efficiently. Your point about refreshing is quite valid, and might be faster if the number of elements is quite large. Yet I could implement almost exactly the same solution using one variable. Further, when it comes to setting multiple "trues", my method is easier and would generate less code overhead.
>>
>>Of course, this is just IMHO, I could be wrong...
>>
>>George
>
>You were right, and there are so many ways to implement the same thing, especially moving OO...:)

And, lest we forget, what we do is art, and no two people are going to have the same "vision" of the solution.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform