mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-28 11:17:46 +00:00
Clears most recent value of variables when out of scope.
This commit is contained in:
parent
f1eb6787a9
commit
16841c56f1
1 changed files with 7 additions and 0 deletions
|
@ -7792,6 +7792,13 @@ FUNCTION idevariablewatchbox(currentScope$)
|
|||
totalVisibleVariables = 0
|
||||
FOR x = 1 TO totalVariablesCreated
|
||||
IF usedVariableList(x).includedLine THEN _CONTINUE 'don't add variables in $INCLUDEs
|
||||
|
||||
IF usedVariableList(x).subfunc = currentScope$ OR usedVariableList(x).subfunc = "" THEN
|
||||
'it's ok
|
||||
ELSE
|
||||
usedVariableList(x).mostRecentValue = ""
|
||||
END IF
|
||||
|
||||
IF LEN(searchTerm$) THEN
|
||||
thisScope$ = usedVariableList(x).subfunc
|
||||
IF thisScope$ = "" THEN thisScope$ = mainmodule$
|
||||
|
|
Loading…
Reference in a new issue