Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Defining Optional Parameters in a VFP Class Object
Message
From
15/04/2000 03:21:20
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Defining Optional Parameters in a VFP Class Object
Miscellaneous
Thread ID:
00359990
Message ID:
00359990
Views:
51
I trying to write a COM object in VFP that will expose its database functions to other languages like VB and VC. I seem to be doing well so far except when it comes to passing optional paramters. In VFP I do not receive an error if I use...

MyData.Close()

... this should close all open tables. But when I try to do the same in VB I get an error "Agrument not optional...". This is how I used the object in VB.

Option Explicit
Dim MyData as New VFPData

Sub Form_Load()
MyData.Open "D:\MyProgs\MyTable.DBF"
...
End Sub

Sub Form_UnLoad()
MyData.Close && This is where the error happens since I did not
pass an Alias name of an open table.
...
End Sub

Please e-mail me at Knightmare@ThePentagon.com if you have an answer.

Thanx! in adavance.
Shit happens!!!
Next
Reply
Map
View

Click here to load this message in the networking platform