>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.