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--