Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
=IIF..... in design
Message
De
25/01/1999 07:45:36
Jeroen Naus
Harte-Hanks Europe
Hasselt, Belgique
 
 
À
22/01/1999 12:08:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00179012
Message ID:
00179753
Vues:
22
You should put this kind of code in access and assign methods. You can create code whenever you access or assing a value to a certian property. By putting the code in the assign method you can have that code change the value of your other property. Access and assign methods can be created by checking the checkbox when you create the properties or going to the edit properties window and changing it there.

ASSIGN METHOD for ThisForm.plTest should read:

LPARAMETERS vNewVal
IF vNewVal
ThisForm.pcTest1 = 123
ELSE
ThisForm.pcTest1 = 456
ENDIF
THIS.success = m.vNewVal

Put the default value of pcTest1 to 456 . Access and assign methods are only supported by VFP6.

Greetings,
Juri
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform