Posts: 242
Threads: 29
Joined: Dec 2004
Quote:when i try to compile your code i get this error from qbasic
So shouldn't you be asking this question in the QBasic help group instead of the freeBASIC one?
Letting everyone know that qbasic gives an error doesn't really matter. There are going to be a lot of new keywords, etc, that will not work.
Now if freeBASIC gives you an error...
ature has its way of warning a person away from danger: The distinct black and white coloration on a skunk, the chilling buzz of a rattlesanke, a redneck handing you his beer and saying "Watch this!"
Posts: 68
Threads: 7
Joined: Dec 2004
IMHO, your code would trigger the compile error due to "End If" shared the same line as "GOTO xxx" and no statement separator(":") in between them. This has been fixed in Z!re suggested code. Have tried compile Z!re code in QB?
= inc(¢)
Posts: 3,522
Threads: 189
Joined: Dec 2003
My code works just fine in QB7.1
It also fixes an error with:
go:
Apparently invalid to use as a label in QB.
Posts: 442
Threads: 107
Joined: Feb 2005
maybe its my 4.5 .... my bad
url=http://www.random-seed.net]
[/url]
Posts: 6,419
Threads: 74
Joined: Mar 2002
No, it works in 45.
You just HAVE TO SPLIT
goto go end if AS STATED THREE TIMES BEFORE THIS POST
i.e. turn
to
Posts: 3,522
Threads: 189
Joined: Dec 2003
And change
go:
To:
Goo:
Apparently QB doesent like using GO as a label
All very easy to find, when QB highlights the erronomous line and tells you whats wrong with it. :roll:
Posts: 442
Threads: 107
Joined: Feb 2005
holy crap Z!re, i didnt even thnk of that, now it worx!!
url=http://www.random-seed.net]
[/url]