Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using VB DLL's from VFP
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00410329
Message ID:
00410340
Views:
18
>>There was a good article in FPA called "Using The Studio", which showed how to call a VB program from within VFP (Vincent, are you out there?). It used some date functions as an example, and went through the process in both programs.
>>
>>This was just what I needed to know (well, 6 months too late, but anyway...) I'd really like to impliment this method to grab some onject information from AutoCAD which I could not get directly from VFP due to some screwy data types that VFP doesn't seem to handle well.
>>
>>The article showed how to return a single value from the DLL, but in my case, I'll need to recurse through a bunch of objects in VB and return each one to my VFP program to stuff into a table. I don't understand how I would do this using the DLL approach. I presume that each time I call the dll, it will always return properties the first object - I don't know how I would return the full range of objects. Is there some way to impliment a NEXT UNTIL or something, or some other way of returning properties of a series of objects?
>>
>
>Create a collection in the VB .DLL to hold the data, and populate it with the data that you want to return; rather than returning the value as a single value from the method, simply spin through the collection after calling the method that populates it.

Can you give me some pseudo-code showing me how to spin through that collection in VFP? Does VFP see it as an array, or what?

TIA
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform