mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-06-29 11:40:38 +00:00
Fix get global/local
for fixed-length strings in UDTs
This commit is contained in:
parent
7413e2fe6f
commit
8e09f14e7f
|
@ -7851,6 +7851,11 @@ SUB DebugMode
|
|||
CASE "STRING": varSize& = LEN(dummy%&) + LEN(dummy&)
|
||||
CASE ELSE 'UDT?
|
||||
varType$ = getelement(usedVariableList(tempIndex&).elementTypes, tempElement&)
|
||||
IF INSTR(varType$, "STRING *") THEN
|
||||
'Request exactly the amount of bytes specified for fixed strings in UDTs
|
||||
varSize& = VAL(_TRIM$(MID$(varType$, INSTR(varType$, "STRING *") + 8)))
|
||||
RETURN
|
||||
END IF
|
||||
IF LEN(varType$) THEN GOTO checkVarType
|
||||
END SELECT
|
||||
RETURN
|
||||
|
|
Loading…
Reference in a new issue