Re: problem with select function

Valik <[email protected]>
Newsgroups gmane.comp.windows.autoit.user
Message-ID <[email protected]>
Jodie and Tiger wrote:
> 
> 
> 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
> 

Select is an AutoIt keyword.  You can't name a function after a keyword. 
  Rename your function and the problem will go away.

-- 
- Valik


 
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.