Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coding to either DLL or VCX
Message
From
07/10/1998 17:21:42
 
 
To
07/10/1998 17:07:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00144794
Message ID:
00144809
Views:
25
Hi Robert ----

Create a table (clstrack) with two fields: Class and ClassSource. Add a record for "foo" with Class=foo and ClassSource= either fooclass (vcx is irrelevent) or fooclass.dll. Index on class
USE clstrack IN 0 ORDER TAG class
SEEK "foo" IN clstrack
cFooSource=clstrack.classsource
oFoo=NEWOBJECT("foo",cFooSource)
USE IN clstrack
Something like that?





>[VFP6] I have a front-end VFP app that accesses a middle-tier written in VFP. I want the middle tier to be either VCXs or DLLs. How can I abstract this from my front end NewObject() calls?
>
>Example:
>Class foo could be in either FooClass.vcx or FooClass.dll
>Syntax would be:
>NewObject("foo", "FooClass") or
>NewObject("FooClass.foo")
>
>The point being, I have to know when coding how my middle-tier is architected.
>
>What I really want is something like:
>NewObject("foo", "FooClass")
>which would look in either the VCX or DLL as appropriate.
>
>Is there a simple way to do this?
>
>Bob
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform