Jump to content
Sign in to follow this  
SES Tech

OLE Automation

Recommended Posts

I notice that FileMaker installs a "tlb" file for filemaker which should mean I can access it thru VB. I've tried every combination I can think of for:

GetObject or CreateObject

in VB. Has anyone done this or know how?

Share this post


Link to post
Share on other sites

Check out the help for "activeX", it details all the objects and methods plus has some VB examples.

You need to include a reference tot he LIB file in your VB project, use VB's object browser and you'll see FileMaker 7 listed.

In VBscript and the like this will work:

CreateObject("FMPRO.Application")

Note that this syntax is the same for FM6 so if you have both FM6 and FM7 installed this call will run whatever you last opened manually.

Share this post


Link to post
Share on other sites

Thank you. Perfect. I looked at all the help files and pdfs on the Developer CD, but never thought of the help file. My mistake. The help file is indeed good.

Share this post


Link to post
Share on other sites

Couple of cautions, for others:

A Script must be checked and visible in the Script Menu to execute

Can not open remote files

Solution: Use a "parent" file containing automation scripts and remote opens (as a script)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.