From da1344221f158905038b03e30f8affe0e0b9ea6a Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Sun, 29 Aug 2021 19:32:32 -0300 Subject: [PATCH] Fixes detecting if it's a local/global var before sending value. --- source/ide/ide_methods.bas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/ide/ide_methods.bas b/source/ide/ide_methods.bas index 394bd0ee3..fb9d815bd 100644 --- a/source/ide/ide_methods.bas +++ b/source/ide/ide_methods.bas @@ -7069,8 +7069,9 @@ SUB DebugMode result$ = idevariablewatchbox$(currentSub$, filter$, selectVar, returnAction) IF returnAction = 1 THEN 'set address - tempHeader$ = LEFT$(result$, 24) tempIndex& = CVL(LEFT$(result$, 4)) + result$ = MID$(result$, 5) + tempHeader$ = LEFT$(result$, 24) tempIsArray& = CVL(MID$(result$, 5, 4)) tempArrayIndex& = CVL(MID$(result$, 9, 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) IF ok THEN temp$ = "" + temp$ = temp$ + MKL$(tempIndex&) temp$ = temp$ + MKL$(usedVariableList(tempIndex&).localindex) temp$ = temp$ + MKL$(usedVariableList(tempIndex&).isarray <> 0) temp$ = temp$ + MKL$(tempArrayIndex&)