October 2, 200619 yr 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
October 2, 200619 yr Newbies 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
October 2, 200619 yr 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
Create an account or sign in to comment