Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Beginner help

Featured Replies

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

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

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

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.