Jump to content

Recommended Posts

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 post
Share on other sites
  • Developers

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'

<{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 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 post
Share on other sites

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 post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...