Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual Foxpro - TYPE .... EN DTYPE
Message
From
17/03/2000 13:19:37
 
 
To
17/03/2000 11:08:28
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00347070
Message ID:
00347174
Views:
21
>I am trying to use a DLL with VFP5, but the documentation for the DLL gives it examples for VB. A lot of the parameters are custom data types outside of the usual STRING, LONG, INTEGER used in DECLARE - DLL.
>
>A file is included which defines the custom parameter types using TYPE...END TYPE which in a VB app would go into global.bas
>
>Does anyone know if Visual FoxPro supports an alternative to TYPE...END TYPE???
>
>Thanks in anticipation

UDTs (structures) are not supported in VFP, but you can emulate them if you know how each field type is represented internally in the structure. Download Christof Lange's Structure class from the files section. It contains a Word document that tells you how to translate types, and comes with a great class that lets you define the fields in a structure, and creates the string for you.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform