Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declare statements
Message
 
 
To
14/05/2004 16:41:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00904214
Message ID:
00904231
Views:
24
Hi Beth,

Both are correct. The parameter names are optional and used to make declaration "self-documented".

>I am working in vfp6 sp5 on an NT4 machine.
> I have looked at examples in the UT magizine and in the downloads about calling APIs from VFP. In the examples I have seen here, the parameters passed are given the type, reference or value, and a variable name like this:
>
>DECLARE LONG socket IN "wsock32.dll" LONG af, LONG prototype, LONG protocol
>
>but in code that I inherited, the parameters passed are only given the type and reference or value like this:
>
>DECLARE INTEGER GetLandmarkListData IN georeports STRING @
>
>which is the correct or best way to do this? And why?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform