Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UDF within a VFP Form
Message
From
27/11/2007 14:19:52
 
 
To
27/11/2007 14:03:51
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01271501
Message ID:
01271512
Views:
24
Would anyone know how to create a UDF that resides within a VFP 6.0 Form that can then be called by an 'OnKeyLabel' statement?

You mean a custom method?

From the form menu select new methos and give it a descriptive name. Then write your code in that method.

Set the form's KeyPreview Property to .T.

Then, code like this in your new custom method:
*** You can look up ascii values in the help topic for INKEY()
IF nKeyCode = << ascii value of whatever key you want>>
  Thisform.MyNewCustomMethod()
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform