2 nco2k:
OK, thanks! I see that not only me suffering from this issue)
Problem is: I'm using files created by PB Form Designer and for simplicity/universality I want to keep them in .pbf format - IMHO PBFD shall create a cleaning code automatically if a parent window is defined and for this it shall create not a global variable for each gadget/window but a list or a map (user selectable). Currently I can't do this cleaning in cycle and I need to zero these variables one by one ... looks ugly:
Code:
Procedure CloseModal( _iFormID.i)
CloseWindow( _iFormID)
Window_Connect = 0
Button_CmConnect = 0
Button_CmCancel = 0
ipConnectTo = 0
strUserName = 0
strPassword = 0
lstConnections = 0
strConnectionName = 0
lblConnectionName = 0
lblConnect2IP = 0
lblLogin = 0
lblPassword = 0
Button_CmAdd = 0
Button_CmDelete = 0
Window_AlarmEdit = 0
Button_AseApply = 0
Button_AseCancel = 0
; TODO: Finish
Window_About = 0
Button_AboutClose = 0
imgDevice = 0
txtAboutName = 0
txtAboutVer = 0
txtAboutCopyright = 0
txtAboutCopyrightName = 0
txtAboutEmail = 0
DisableWindow( Window_Main, #False)
EndProcedure