Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HPA DLL
Message
From
30/11/1999 14:01:23
 
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00296825
Message ID:
00297040
Views:
46
>Set/Get are the VB equivalents for assign and access methods for a VFP native class. if you know the properties of the object, you should be able to assign values to and read values from them directly, or worst case, you'll have methods like ABC.SetSomeProperty to assign it a value and ABC.GetSomeProperty to read the value in it.

The VFP translation for a Get/Set pair in my experience usually goes

lcValue = oCOMObject.Get("SomeProperty")

and

lSuccess = oComObject.Set("SomeProperty", "SomeNewValue")


Paige- as Ed says, you're making this much more difficult than it needs to be. The COM interface gets you by all of the DECLAREs and worrying about data type translations that you need to worry about with a C library. Since this library publishes its interface through COM, windows is handling it all for you.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform