Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkbox click - how to prevent changing the value?
Message
De
09/07/2010 10:39:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01471953
Message ID:
01471994
Vues:
47
>>>>>Hi everybody,
>>>>>
>>>>>I added NODEFAULT and return in Checkbox Click event, but it still changes the value.
>>>>>
>>>>>How can I prevent it?
>>>>>
>>>>>Thanks in advance.
>>>>
>>>>Set it to ReadOnly or Enabled = false
>>>
>>>No one with good suggestions of resolving the problem? It's probably a bug - but I'm not sure what workaround options are?
>>
>>How about
IF (ChangeNotAllowed)
>>  this.Value = IIF(this.Value=0,1,0)
>>ENDIF
in the Click event (g)
>
>Right, but it doesn't sound like a very good interface as it will switch and then switch back.

It doesn't just not sound good - it sounds horrible (g) OTOH I've no idea whether flipping it in the Click() will happen before any ControlSource gets changed.....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform