Vjeran Posted August 28, 2005 Posted August 28, 2005 Hi, I am using FMPro Dev 7, on Win XP and I am trying to write VBScript which will start FMScript in my file Tmob.fp7 ... but it does not work : Any help? Here is a VBScript: Set objFM = CreateObject ("FMPRO.Application") objFM.Visible = True Set objFMfiles = objFM.Documents.Open("c:Tmob.fp7","") objFMfiles.DoFMScript ("Novi") Thx in advance VJ
Wim Decorte Posted November 12, 2005 Posted November 12, 2005 objFM.Documents.Open("c:Tmob.fp7","") This line is incorrect, it's the syntax for FM 5.5/6. FM7 requires 3 parameters here: - name of the file - account name - password FM 5.5/6 needed only file name and password.
BowDown Posted December 21, 2005 Posted December 21, 2005 I tried the same thing that was listed above and it doesn't give me any errors. If I change the line to 08-28-05 10:34 AM - Post#173357 Hi, I am using FMPro Dev 7, on Win XP and I am trying to write VBScript which will start FMScript in my file Tmob.fp7 ... but it does not work Set objFM = CreateObject ("FMPRO.Application") objFM.Visible = True Set objFMfiles = objFM.Documents.Open("c:Tmob.fp7","Admin","") It gives me a VB Error saying that the function has the incorrect number or parameters. Of course, maybe I'm getting an issue by having FM5, FM7 and FM8 installed at the same time?
BowDown Posted December 21, 2005 Posted December 21, 2005 Got it! I stupidly had FM5 and FM8 open, and it was passing the call to FM5.
Recommended Posts
This topic is 6955 days old. Please don't post here. Open a new topic instead.
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 accountSign in
Already have an account? Sign in here.
Sign In Now