>When looking into different API's, the syntax of writing codes are most often in Visual C or Visual Basic. One of my problems is how to understand how to write code in Foxpro where the parameter in the API function consists of more than one element. In Visual Basic there is the TYPE STATEMENT.
>For example:
>Private Type NETRESOURCE
> dwScope As Long
> dwType As Long
> dwDisplayType As Long
> dwUsage As Long
> lpLocalName As String
> lpRemoteName As String
> lpComment As String
> lpProvider As String
>End Type
There's no direct equivalent; you can use Christof Lange's STRUCT class, downloadable from the Files area, or use my ClsHeap class to provide external memory management for the APIs; if your main concern is the NETRESOURCE structure, you can download my NETRESOURCE class from the File Section here on UT as well (also get ClsHeap)