[Gambas-user] syntax error

Jean-Francois Perreault cmcpero at ...142...
Sun Mar 6 19:21:43 CET 2005


where did you declare countCorrect and countWrong ?
either they were public/private to your class or they
were part of your sub/function declaration ,else that would explain the 
error

Neil Fallon wrote:

>Hi,
>
>Could someone please look at this code and tell me why I am getting a
>syntax error on the first line?  It's simple stuff that shouldn't be
>generating an error.
>
>DIM strQuestions AS String
>DIM strWrong AS String
>
>IF countCorrect > 1 THEN
>    strQuestions = "questions"
>ELSE
>    strQuestions = "question"
>END IF
>
>IF countWrong > 1 THEN
>    strWrong = "questions"
>ELSE
>    strWrong = "question"
>END IF
>
>
>
>Neil
>
>
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now.
>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>_______________________________________________
>Gambas-user mailing list
>Gambas-user at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>





More information about the User mailing list