Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bound control updating
Message
De
24/07/2000 02:24:59
 
 
À
24/07/2000 00:56:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00396053
Message ID:
00396062
Vues:
10
g'day John,
Well it sucks, but at least i've not lost the plot. I always think that if you have to stand on your head and look through a mirror to fix something, you're doing something wrong.

Thanks for warning on the General field, esp. since I use GetFldState() quite a bit in some of my stuff.

>Hi dave,
>
>You almost have to do an explicit REPLACE....sucks, I know.
>
>Want to see worse? Use an OLEBoundControl with a General field. The minute you bind the control to the source, the source registers a change with GETFLDSTATE()....Ack!
>
>
>>An object (say oX) will update its value from the control source when an oX.refresh() is called.
>>
>>How do you force an objects to update the contrl source when the value changes?
>>
>>I ask because if I test the control source value in the oX.interactivechange() method, its value hasn't necessarily been updated to equal the oX.value
>>This is nasty if my .interactivechange method calls a form method which expects the updated value to be there.
>>
>>My current fix is to explicitly update the control source in the interactivechange() method. But that seems an odd thing to do!
>>
>>What do you reckon?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform