From the manual entry on Event Variables:
lobal variables can be moved to another event sheet by cutting and pasting them. After being cut, references to the global variable will disappear because it has been removed; this is normal and nothing to worry about. When you paste the global variable, the references that disappeared will reappear again.
Note: global variables are on an event sheet, not a layout.