Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# connecting to Fox Free Table
Message
 
To
05/12/2002 10:07:10
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
00729877
Message ID:
00730107
Views:
28
>I need to make a small c# app connect to a Fox Free Table just for reading purposes. Has anyone done anything like this? Any info would be appreciated.
>
>Thanks,
>Mark
DEFINE CLASS myclass AS form OLEPUBLIC
	Datasession=2	&& private datasession
	PROCEDURE MyDoCmd(cCmd)
		&cCmd	&& just execute parm as if it were a fox command
	FUNCTION MyEval(cExpr)
		RETURN &cExpr	&& evaluate parm as if it were a fox expr
ENDDEFINE
I forget where I found it - maybe VFP 7 documentation or MSDN (or westwind). Anyway, this guy was called from an Excel Macro and populated a spread sheet with DBF fields. My appologies for not having a proper citation. Check your VFP 7 Help -> VFP COM selections.
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform