Normal Topic Problems with @Macro (Read 632 times)
Dale_W
Member
*
Offline


No personal text

Posts: 5
Joined: Feb 20th, 2006
Problems with @Macro
Feb 20th, 2006 at 10:05pm
Print Post Print Post  
I am trying to set up a form for navigating to the rest of the forms within a database.  I used the @Macro to call the macro's I recorded for this.  I keep getting a message saying the macro failed to load.  When I click on OK it finishes closing the form and then runs the macro I wanted, and everything works great.  I just keep getting the error message.

Code looks like this
@Exit
@Macro ("MyMacro")

The @Exit was the only way to get the macro to work after the error message.  Without @Exit the macro does not run at all.
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Problems with @Macro
Reply #1 - Feb 20th, 2006 at 10:12pm
Print Post Print Post  
Hello,

Try specifying the macro file extension.

@Macro ("MyMacro.mac")

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Dale_W
Member
*
Offline


No personal text

Posts: 5
Joined: Feb 20th, 2006
Re: Problems with @Macro
Reply #2 - Feb 21st, 2006 at 12:34pm
Print Post Print Post  
I tried specifying with the .mac extension, but the same thing happened

-Dale
  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Problems with @Macro
Reply #3 - Feb 21st, 2006 at 1:27pm
Print Post Print Post  
Dale,

If the form is in the same application, you can use programming rather than macros.

You could use something like this to open a form:
Code
Select All
var Success as int

Success = @SelectTreeItem(@Application + "!Forms!Add Data!Invoice!Invoice")
 


I use this code in my Main Menu form to open my invoice form in add mode.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Dale_W
Member
*
Offline


No personal text

Posts: 5
Joined: Feb 20th, 2006
Re: Problems with @Macro
Reply #4 - Feb 21st, 2006 at 9:57pm
Print Post Print Post  
Thank you Carl That worked Great.
  
Back to top
 
IP Logged