Re: URGENT: FoxPro COM Object
From: Eric den Doop (ericdendoop_at_xspamblockxfoxite.com)
Date: 09/11/04
- Previous message: Faraz Khan: "URGENT: FoxPro COM Object"
- In reply to: Faraz Khan: "URGENT: FoxPro COM Object"
- Next in thread: Anders Altberg: "Re: URGENT: FoxPro COM Object"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 11 Sep 2004 11:04:58 +0200
Hello, Faraz!
You have to create a COM DLL in VFP. A COM server is a OLEPUBLIC class. A
sample class definition is:
DEFINE CLASS bizrules AS Custom OLEPUBLIC
PROCEDURE DeleteCustomer (tnCustomerID As Integer)
* do some checking here...
DELETE FROM Customer WHERE id == tnCustomerID
RETURN some_Value && for example .T. if DELETE succeeded
ENDPROC
ENDDEFINE
See VFP help on DEFINE CLASS for more info.
-- Eric den Doop www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8
- Previous message: Faraz Khan: "URGENT: FoxPro COM Object"
- In reply to: Faraz Khan: "URGENT: FoxPro COM Object"
- Next in thread: Anders Altberg: "Re: URGENT: FoxPro COM Object"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading