poplat Posted April 14, 2005 Share Posted April 14, 2005 i really need help i've created one GUI and make another one to input data i use in first include"secondGUI" but ... when i run 2nd GUI alone it works perfectlu but when i run first GUI it came with the message: Func close() Error: 'Func' statement has no matching 'EndFunc' when i remove every func line it works but no event on 2nd GUI i do not know why , what am i doing wrong, or what i do not know i wuld be gratefull for any advice and help here is my 2nd GUI : #include <GUIConstants.au3> Opt("GUIOnEventMode", 1) $dane = GUICreate('Informacje o połączeniu', 280, 150) ;GUICtrlCreateLabel(GUICtrlRead($a1), 90, 10) GUICtrlCreateLabel("Nazwa użytkownika: ",14 , 45) $id = GUICtrlCreateInput ("", 115, 43, 140, 20) GUICtrlCreateLabel("Hasło dostępowe: ", 25, 75) $haslo = GUICtrlCreateInput ("", 115, 73, 140, 20) GUISetOnEvent($GUI_EVENT_CLOSE, "close") ; przycisk ok $ok = GuiCtrlCreateButton("OK", 86, 110, 100, 27) GUICtrlSetOnEvent($ok, "ok") GuiSetState() While GuiGetMsg() <> $GUI_EVENT_CLOSE WEnd Func close() Exit EndFunc Func ok() Exit EndFunc poplat Link to comment Share on other sites More sharing options...
Developers Jos Posted April 14, 2005 Developers Share Posted April 14, 2005 (edited) i really need helpi've created one GUI and make another one to input datai use in first include"secondGUI" but ...when i run 2nd GUI alone it works perfectlu but when i run first GUI it came with the message:Func close()Error: 'Func' statement has no matching 'EndFunc'<{POST_SNAPBACK}>I assume your #include "secondGUI.au3" is located inside a While..wend or Select...endselect ?The #Include inserts the code at the line it is located .......You cannot have FUNC-ENDFUNC inside any If-EndIF, Select-Endselect of other FUNC-ENDFUNC....... Edited April 14, 2005 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
poplat Posted April 14, 2005 Author Share Posted April 14, 2005 I assume your #include "secondGUI.au3" is located inside a While..wend or Select...endselect ?The #Include inserts the code at the line it is located .......You cannot have FUNC-ENDFUNC inside any If-EndIF, Select-Endselect of other FUNC-ENDFUNC.......<{POST_SNAPBACK}>ok now i understand , but is there any solution to run 2nd GUI when the statement is made ?? Link to comment Share on other sites More sharing options...
poplat Posted April 15, 2005 Author Share Posted April 15, 2005 I do not know how to do it , so I made it with InputBox But it doesn't look nice, 2nd GUI looks better, but i do not know YET how to do it .... Anyway thanks for info ... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now