problem with select function

"Jodie and Tiger" <[email protected]>
Newsgroups gmane.comp.windows.autoit.user
Message-ID <006b01c6f3a4$d97509b0$2f01a8c0@jodiebd9509cd4>
Hi. I did the select function for my game menu; it's not a typical menu, like start game, test speakers and exit. I will, of course, be putting an exit function in, I just want to do all the important code first. I did the select function the way Damian said to do it, but it keeps telling me it's a badly formatted func statement with func in quotes. Here is the code. Can someone tell me waht's wrong with it? Thanks.

Func select()
 if $option1 = $RandomLetter Then
  right()
  Else
  wrong()
 EndIf
Endfunc

Hugs from Jodie and kisses from Tiger.
:)
"Belief is the cradle of myth."
Stephen King


----------------------------------------
I am using the free version of SPAMfighter for private users.
It has removed 2522 spam emails to date.
Paying users do not have this message in their emails.
Get the free SPAMfighter here: http://www.spamfighter.com/len

[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AutoItList/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/AutoItList/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.