Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
=IIF..... in design
Message
From
25/01/1999 07:45:36
Jeroen Naus
Harte-Hanks Europe
Hasselt, Belgium
 
 
To
22/01/1999 12:08:28
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00179012
Message ID:
00179753
Views:
21
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
Previous
Reply
Map
View

Click here to load this message in the networking platform