aviaf Posted June 15, 2011 Share Posted June 15, 2011 I have the following code: _IELinkClickByIndex ($browser2,8) done() Func done() GUICreate("GUI",300, 100, 15, 15) GUISetState() GUISetBkColor(0x00FF00) GUISetFont(42) GUICtrlCreateLabel('Done!', 75,20) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd ; Continue loop untill window is closed Exit EndFunc Sleep(2000) All of this is within another func just fyi. When I run it, it says: "Func" statement has no matching "EndFunc".: Func done() What did I do wrong? Link to comment Share on other sites More sharing options...
enaiman Posted June 15, 2011 Share Posted June 15, 2011 Function INSIDE function? ... hell NO! You can CALL a function from another not DECLARE it inside. Just move it outside. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
aviaf Posted June 15, 2011 Author Share Posted June 15, 2011 thanks! I should have realized 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