[Gambas-user] syntax error
Leo Barnhoorn
leo.barnhoorn at ...246...
Sun Mar 6 18:08:41 CET 2005
Hello Neil,
You have to use PUBLIC or PRIVATE as general declaretion, because it is
outsite a SUB or FUNCTION.
DIM you use that within SUB's or FUNCTIONS
Regards,
Leo.
On Sunday 06 March 2005 17:42, 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