Jump 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.

Featured Replies

Am i correct in thinking that you can not pass variables between Files?

If so anyone got any great techniques other than global fields in order to get around this?

best

Stuart

Stuart, you can pass data via script parameters to another file. When I need to pass multiple parameters, I usually send a let statment as a STRING. Then I use Evaluate in the other file and voila all the variables from file 1 can now be used in file 2. Most of the time I just use local variables.

Here is an example. Its not a realistic situation and its not that pretty but it does its job.

parameters.zip

Edited by Guest
Added sample

  • Author

Hey Mr Vodka,

That's A really really great technique.

I have modified it to be dynamic (so i will only ever need one script) and also to allow it to be applied to multiple tables in file B.

Thanks so much,

best

Stuart

PS i am drinking Vodka tonic tonight :beer:

parameters.zip

That is a nice technique, but I think it will cause you trouble if the variables you're passing include a double-quote in their data.

Changing the passing calculation to:

  "Let ( [ $var1 = " & Quote($var1) & "; $var2 = " & Quote($var2) & "]; "" )"

instead would fix that issue, as this problem is the reason the Quote() function exists.

But nowhere a new discovery!

http://www.fmforums.com/forum/showpost.php?post/187787/

--sd

  • Author

Hey Shadow,

Thanks for the refinement.

I forgot about the Quote() function.

Soren,

This was NOT an exercise in originality but a request for anyone who KNEW of ANY techniques for which i thank the contributers as my issue is now resolved.

Originality is not the same as functionality, this was a request not an example file post.

The post you linked to was an element included in the solution and would not have passed a variable to a second file as Mr Vodka demonstrated.

The discussion which includes Comments technique is simply a refinement and will im sure stop me running into further issues in the future.

Thanks Mr Vodka, thanks The Shadow.

best

Stuart

Edited by Guest

Sorry, didn't take the time look into this (I will certainly do), but here is the technique we use internally.

I think the CFs in the example are not up to date, but can be found on Brian Dunning's web site.

VariablesLog :

http://www.bh-a.com/downloads_1.1.html#DL03

HTH

Edited by Guest

Create an account or sign in to comment

Important Information

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

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.