mirror of
https://github.com/FellippeHeitor/InForm.git
synced 2025-01-15 03:49:56 +00:00
Declares __UI_RegisterResult for all new forms.
Prevents issues if the user wants to have OPTION _EXPLICIT in their code.
This commit is contained in:
parent
92cebc6d9f
commit
b2f14c07ae
1 changed files with 1 additions and 14 deletions
|
@ -4132,20 +4132,7 @@ SUB SaveForm (ExitToQB64 AS _BYTE, SaveOnlyFrm AS _BYTE)
|
|||
IF PreviewControls(PreviewFormID).CanResize THEN
|
||||
PRINT #TextFileNum, " $RESIZE:ON"
|
||||
END IF
|
||||
PRINT #TextFileNum, " DIM __UI_NewID AS LONG";
|
||||
FOR i = 1 TO UBOUND(PreviewControls)
|
||||
IF LEN(PreviewKeyCombos(i)) > 0 THEN
|
||||
PRINT #TextFileNum, ", __UI_RegisterResult AS LONG"
|
||||
EXIT FOR
|
||||
END IF
|
||||
NEXT
|
||||
IF i = UBOUND(PreviewControls) + 1 THEN
|
||||
IF AddGifExtension THEN
|
||||
PRINT #TextFileNum, ", __UI_RegisterResult AS LONG"
|
||||
ELSE
|
||||
PRINT #TextFileNum,
|
||||
END IF
|
||||
END IF
|
||||
PRINT #TextFileNum, " DIM __UI_NewID AS LONG, __UI_RegisterResult AS LONG"
|
||||
PRINT #TextFileNum,
|
||||
|
||||
'First pass is for the main form and containers (frames and menubars).
|
||||
|
|
Loading…
Reference in a new issue