Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automating VFP 6.0
Message
From
04/05/2000 15:21:05
Robert Zinn
Made2Manage Systems, Inc.
Indianapolis, Indiana, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Automating VFP 6.0
Miscellaneous
Thread ID:
00366269
Message ID:
00366269
Views:
52
I am attempting to control VFP 6.0 via Automation (I'm doing this from within a VFP 6.0 application which seems to work well enough), but I'm having a very difficult time determining how to automate many events in VFP. The documentation provided for the VFP Application Object Model seems pretty superficial and there aren't many examples.

If I were automating an MS-Office product, I would probably just record a macro to do what I want. Then I could call that macro from my application (or review how the macro did it and add similar code to my application).

The macro recorder in VFP will only record keystrokes. Is there a tool that will allow me to record macros in VFP for actions performed with a mouse?

Is there somewhere I can find more detailed documentation about the VFP Object Model and how to control VFP 6.0 via Automation?

Here's an example of one of the things I'm trying to do: I open VFP 6.0 via automation and issue a MODIFY FORM ... to edit an existing form. The form opens properly, but the Form Controls Toolbar displays the "Standard" controls. I want the Form Controls Toolbar to display a class. When I "View Classes", my class is there, and I can manually select it. But I want to be able to automate VFP so that my class will be selected immediately without manual intervention. I have no idea how to automate this action.
Next
Reply
Map
View

Click here to load this message in the networking platform