[Gambas-user] syntax error
Neil Fallon
nfallo at ...734...
Sun Mar 6 17:53:31 CET 2005
I figured out a way around the problem by making the variables Public at
the top of the screen. I guess it would be the general declarations
section.
I'm not sure why the variable would have to be declared as public there
instead of being able to use a variable in the sub that I am working
with when the variable is only used in that sub.
Neil
On Sun, 2005-03-06 at 11:42 -0500, 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