Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert VB syntax to VFP
Message
From
02/07/2002 12:20:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Convert VB syntax to VFP
Miscellaneous
Thread ID:
00674538
Message ID:
00674538
Views:
58
Hi,
I am trying to convert some VB code to VFP.

This is the VB Syntax:

Private Declare Function OFAC_Tracker Lib "ofac.dll" (params As PARAM_STRUCT) As Long


I am trying this:

Declare long OFAC_Tracker IN ofac.dll object@params

and included this code:
params=CREATEOBJECT("PARAM_STRUCT")
params.cName="SUZI TAYLOR"
params.Address=""
params.City=""
params.Country=""
params.nLevel=75
params.valid_country=0

DEFINE CLASS PARAM_STRUCT as Custom
cName = ""
Address =""
City =""
country =""
nLevel = 0
Valid_Country =0
ENDDEFINE

I think my Declare statement is wrong. Can anyone help me with this ?
THANKS
Next
Reply
Map
View

Click here to load this message in the networking platform