aviaf 0 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? Share this post Link to post Share on other sites
enaiman 16 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 scriptwannabe "Unbeatable" Tic-Tac-ToePaper-Scissor-Rock ... try to beat it anyway :) Share this post Link to post Share on other sites
aviaf 0 Posted June 15, 2011 thanks! I should have realized Share this post Link to post Share on other sites