mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-05 03:00:25 +00:00
Fixes detecting if it's a local/global var before sending value.
This commit is contained in:
parent
704b781cd2
commit
da1344221f
|
@ -7069,8 +7069,9 @@ SUB DebugMode
|
||||||
result$ = idevariablewatchbox$(currentSub$, filter$, selectVar, returnAction)
|
result$ = idevariablewatchbox$(currentSub$, filter$, selectVar, returnAction)
|
||||||
IF returnAction = 1 THEN
|
IF returnAction = 1 THEN
|
||||||
'set address
|
'set address
|
||||||
tempHeader$ = LEFT$(result$, 24)
|
|
||||||
tempIndex& = CVL(LEFT$(result$, 4))
|
tempIndex& = CVL(LEFT$(result$, 4))
|
||||||
|
result$ = MID$(result$, 5)
|
||||||
|
tempHeader$ = LEFT$(result$, 24)
|
||||||
tempIsArray& = CVL(MID$(result$, 5, 4))
|
tempIsArray& = CVL(MID$(result$, 5, 4))
|
||||||
tempArrayIndex& = CVL(MID$(result$, 9, 4))
|
tempArrayIndex& = CVL(MID$(result$, 9, 4))
|
||||||
tempIsUDT& = CVL(MID$(result$, 13, 4))
|
tempIsUDT& = CVL(MID$(result$, 13, 4))
|
||||||
|
@ -8173,6 +8174,7 @@ FUNCTION idevariablewatchbox$(currentScope$, filter$, selectVar, returnAction)
|
||||||
v$ = ideinputbox$("Change Value", "#New value", a2$, "", thisWidth, 0, ok)
|
v$ = ideinputbox$("Change Value", "#New value", a2$, "", thisWidth, 0, ok)
|
||||||
IF ok THEN
|
IF ok THEN
|
||||||
temp$ = ""
|
temp$ = ""
|
||||||
|
temp$ = temp$ + MKL$(tempIndex&)
|
||||||
temp$ = temp$ + MKL$(usedVariableList(tempIndex&).localindex)
|
temp$ = temp$ + MKL$(usedVariableList(tempIndex&).localindex)
|
||||||
temp$ = temp$ + MKL$(usedVariableList(tempIndex&).isarray <> 0)
|
temp$ = temp$ + MKL$(usedVariableList(tempIndex&).isarray <> 0)
|
||||||
temp$ = temp$ + MKL$(tempArrayIndex&)
|
temp$ = temp$ + MKL$(tempArrayIndex&)
|
||||||
|
|
Loading…
Reference in a new issue