February 7, 200718 yr 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 February 7, 200718 yr by Guest
February 7, 200718 yr 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?
February 7, 200718 yr 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
February 7, 200718 yr 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.
February 7, 200718 yr 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.
February 7, 200718 yr 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
Create an account or sign in to comment