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

Losing Values of $$GlobalVariables on Quit

Featured Replies

Need Help :

I lose the value of the global variables when I quit FileMaker!!!

All global variables are prefixed with $$…

I try in FileMaker 8.0 and FileMaker 8.5 and the result is the same.

Why?

Tks

==================================

In FileMaker Help says:

"A global variable can be used in a calculation or script anywhere in a file, for example, other scripts or file paths. [color:red]The value of a global variable is not cleared until the file is closed. [color:blue]Prefix global variables with $$. "

Edited by Guest

LOL ... How do you keep the file open when you have quit FileMaker?

  • Author

lol

i close the file and quit the application,… daaaaaaaaa

Quote: The value of a global variable is not cleared until the file is closed

  • Author

the steps are:

1. Open File

2. Set variables ($$Global variables)

3. Close File or CloseFile and Application

--

4. Re-Open File

Error: GlobalVariables values are missing…

why?

Quote: The value of a global variable is not cleared until the file is closed

  • Author

Quote: The value of a global variable is not cleared until the file is closed

I know, but with me it's the opposite,… i dont understand,…

tks

File is closed = values are cleared

This is what it says, and this is what you reported.

Variables are not kept from session to session. If you need to restore default values, use regular fields in a Preference or User table.

Doesn't your quote in your post from the FM help section answer your own question? If you quit the App, it closes the file, which in turn clears the global variable.

The statement, "Prefix global variables with $$" does not mean that it will prevent the global vars from clearing, it is stating how you assign a global variable verses a single '$' which is for a local one. Maybe you are misinterpreting it?

If you have data that you want to store even after you log out, consider a preferences table where you can store data.

the steps are:

1. Open File

2. Set variables ($$Global variables)

3. Close File or CloseFile and Application ***(you cleared the gVariables here)

--

4. Re-Open File

  • Author

Tks for help!!!! full understand,…

[[]]]****

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.