El_Pablo Posted October 2, 2006 Posted October 2, 2006 Okay, I tried a few things, but ******* that's hard for me. I'm a programmer from the MS world and trying to use FM is way un-friendly... I got to some new beginner problems. How do I pass parameters to scripts? Is there anyway to program code such as VBA? Can I create some methods (I believe that I need to use the scripts...)? How do I create global variables? Can I create something like: Sub ExportImage(ImageFolder, ImageFilename, ImageFormat) Export(ImageFormat) Export(ImageFolder) Export(ImageFilename) End Sub If so, where? If not, how do I perform similar results? Please help me... FM is making me nuts! Nick
Newbies Caibin Posted October 2, 2006 Newbies Posted October 2, 2006 1. If you want to pass parameters to scripts, right click some button-->perform script-->put the parameters into the edit box 0f open script parameter; in the script, use Get(ScriptParameter) to get the parameter 2. no way to program except scripts 3. in the scripts, use set variable script to set global variable the global variable name should begin with $$ the local variable name should begin with $ 4. In the scripts, the sub scripts can be performed just as sub function, the script step is: perform script, and then select the script name
Søren Dyhr Posted October 2, 2006 Posted October 2, 2006 Take a look at this template: http://www.fmforums.com/forum/attachment.php?attid/5922/ While you need a recursion, if the button is lacking, asking for an empty script-paramter - if it's empty call itself with a paramter... --sd
Recommended Posts
This topic is 6629 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