>You can use VB's Createobject() too..
>
>I found this on the MSDN site that might help you (Use Visual FoxPro 5.0 as an OLE Server):
>
>Visual Basic-Command1.Click()
>
>You must declare and specify the variable as an Object Type prior to storing a reference to the OLE server because Visual Basic is a strongly typed language. The only other notable difference between VB and VFP syntax is the Set keyword when you assign a value to a variable. Also, the city, state, and county information can be assigned directly to the text box. It’s assumed that the Value Property will hold information directly assigned to a text box control:
>
>Private Sub Command1_Click()
> Dim o As Object
> Set o = CreateObject("zip.ziplkup")
> o.GetData (Screen.ActiveForm.txtZip)
> Screen.ActiveForm.txtState = o.state
> Screen.ActiveForm.txtCity = o.city
> Screen.ActiveForm.txtCounty = o.county
>End Sub
>
>I'm not sure what version of VB they are talking about, but this might help.
Thanks, this was the way to create it.