Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using VB Constants
Message
 
 
To
20/04/1998 02:39:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00093314
Message ID:
00093345
Views:
33
John,

The OCX should either have a help file or a .h file with the constants. You could create a VFP format .h file and just include it. In VB if the constant is &H1234 you'd change it to 0x1234 everything else ought to be ok.

Forms and classes have an Include File menu option to allow you to set the file so all methods can see the #define constants.

On my website in the spyin.zip file it has some sample .h files.

>I am working with an OCX that has examples in VB. Within the examples, they rely heavily on Constants for values. I presume that the OCX has a suite of constants built in. the help screen contains a list of constants vs value vs descriptions.
>
>Is it difficult to make use of the constants in VFP and could anyone help get me started?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform