[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2008-12-13T19:58:42-05:00 http://www.petesqbsite.com/phpBB3/app.php/feed/topic/2831 2008-12-13T19:58:42-05:00 2008-12-13T19:58:42-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=18513#p18513 <![CDATA[This is a error??]]>
Thanks! Keep up the good work!

Ted

Statistics: Posted by burger2227 — Sat Dec 13, 2008 7:58 pm


]]>
2008-12-13T18:50:21-05:00 2008-12-13T18:50:21-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=18512#p18512 <![CDATA[This is a error??]]>
CLS
FOR x = 1 TO 10
IF (x) + (x * x) = 30 THEN PRINT x;
a = x ^ 2
IF x + a = 30 THEN PRINT x
NEXT x
PRINT 5 ^ 2; " Ok!!"
END

Statistics: Posted by roy — Sat Dec 13, 2008 6:50 pm


]]>
2008-12-13T18:35:26-05:00 2008-12-13T18:35:26-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=18510#p18510 <![CDATA[Ok, thanks!!!]]>
thank you very much, Ted

Statistics: Posted by lrcvs — Sat Dec 13, 2008 6:35 pm


]]>
2008-12-13T18:11:57-05:00 2008-12-13T18:11:57-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=18508#p18508 <![CDATA[This is a error??]]>

Code:

 IF x + CINT(x ^ 2) = 30 THEN PRINT x '
I gather it should print when X = 5. For larger values of X you can use CLNG.

NOTE: It may show 25 in your PRINT at the end however. Don't ask me why! :lol:

Ted

Statistics: Posted by burger2227 — Sat Dec 13, 2008 6:11 pm


]]>
2008-12-13T16:45:12-05:00 2008-12-13T16:45:12-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=18507#p18507 <![CDATA[This is a error??]]> FOR x = 1 TO 10

IF (x) + (x * x) = 30 THEN PRINT x ;" Ok!!"

IF (x) + (x ^ 2) = 30 THEN PRINT x '"Why this line does not work in QB?"

NEXT x
PRINT 5^2 ;" Ok!!"
END


Note: In FB, work well, why?

Statistics: Posted by lrcvs — Sat Dec 13, 2008 4:45 pm


]]>