Sign in to follow this  
Followers 0
aviaf

Something messing up my EndFunc

3 posts in this topic

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



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 :)

Share this post


Link to post
Share on other sites

thanks! I should have realized :huh2:

Share this post


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
Sign in to follow this  
Followers 0