#GlobalVariables
#rstats fam: two question for your packages:
1) whats the best way to address the below: globalVariables()? or trying everything you can to not have variables

```
copy_tables_to_new_location: no visible binding for global variable
‘current_database’
```
vs. rlang::.data$current_database, etc
November 1, 2025 at 10:50 PM
i checked it, it's set correctly. i think it has to do with the globalVariables[i] part but i don't know how to fix that.
November 24, 2024 at 7:47 PM
You're checking the length of globalVariables, but not the length of loadStruct.globalVariables. So if the loaded json has less fields than the existing global variables it'll try and read outside the bounds of the array.
November 24, 2024 at 11:05 PM
Master Python variable scope! Understanding local and global variables is key to avoiding UnboundLocalErrors. Learn how Python handles assignments & references.#PythonVariableScope #PythonProgramming #UnboundLocalError #GlobalVariables #LocalVariables #PythonCoding
tech-champion.com
November 25, 2024 at 9:10 PM
i have tried this by setting a separate string to whatever globalVariables[i] is but that didn't work either. the json has all the global variables in my game saved as their normal names, so this should load them from that file, put them in loadStruct, and then set each of the globals.
November 24, 2024 at 7:28 PM
thanks -- what do you do for undeclared variables? do you usually use globalvariables?
November 1, 2025 at 11:44 PM
In #OracleXE18c $OH/inventory/globalvariables/oracle.server/globalvariables.xml the variable "oracle_install_db_InstallType" suggests the version is EE. I was expecting XE !
November 10, 2024 at 3:32 AM
fixed this! needed to use an accessor to grab the actual variable name from the globalVariables array instead of trying to call a struct variable using a string.
any idea why this is giving me an error at the highlighted line? Says that Variable .globalVariables(101017, 0) not set before reading it. but it is set. i don't know what's happening.

#gamedev #gamemaker #help
November 24, 2024 at 8:50 PM
If we want to talk cursed things start writing your Dictionaries with emojis as string keys.

GlobalVariables[🔑] = API Key
November 22, 2024 at 3:27 PM
any idea why this is giving me an error at the highlighted line? Says that Variable .globalVariables(101017, 0) not set before reading it. but it is set. i don't know what's happening.

#gamedev #gamemaker #help
November 24, 2024 at 7:22 PM