Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding event code programmatically
Message
From
01/03/2005 08:43:32
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
00991384
Message ID:
00991519
Views:
22
Wow! That caused a great deal of interest! For further explanation, the following code is in the base class that is being subclassed onto the form

IF TYPE('THISFORM.pcSecRights')= 'C' AND THISFORM.pcMode <> 'A'
RETURN .F.
ENDIF

I want to add the following code to the When event of the textbox once it has been instantiated:

IF !DODEFAULT()
RETURN .F.
ENDIF

IF THISFORM.pcMode = 'A' AND EMPTY(THIS.VALUE)
THIS.VALUE = THIS.Parent.PickField1.Value
ENDIF
Time is a wonderful teacher. Unfortunately it kills all of its students.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform