Qbasicnews.com
Convert Integer to Stream - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: QBasic (http://qbasicnews.com/newforum/forum-4.html)
+--- Forum: QB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-11.html)
+--- Thread: Convert Integer to Stream (/thread-123.html)



Convert Integer to Stream - Orisha - 02-01-2003

How can I convert an integer variable to a stream?


Convert Integer to Stream - toonski84 - 02-01-2003

what's a stream?

if you mean "string", here: http://qbasicnews.com/qboho/qckstr$.shtml


Convert Integer to Stream - Orisha - 02-01-2003

im sorry string, yes Wink


Convert Integer to Stream - toonski84 - 02-01-2003

no problem, then str$ oughta help

x = 9
a$ = str$(x + 1)

a$ should read:
" 10"

ltrim should get rid of the space in front.

a$ = ltrim$(str$(x + 1))