The first part is
declare integer OIAorder_status in oi_api integer hImgHd1, string OrderID, string@ POrderStatus
It looks as though POrderStatus is a structure. Depending on the structure, you can either build a string or use somethnig like Christof Lange's Struct class or Ed Rauh's ClsHeap class and pass to the function. What does the structure look like?
>Hi, I have a "c" lib I need to call in VFP7. This is how it's called in VB. Can anyone help me with the VFP7 code?
>
>Thanks
>Steve
>
>
>****************************************
>Public Declare Function OIAorder_status Lib _
> "oi_api" _
> Alias "#14" _
> (ByVal hImgHdl As Long, _
> ByVal OrderID As String, _
> POrderStatusA As POrderStatus) _
> As Long
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao