Qbasicnews.com
Qbasicnews.com
>
QBasic
>
QB Discussion & Programming Help
> Convert Integer to Stream
Full Version:
Convert Integer to Stream
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
Orisha
02-01-2003, 02:46 AM
How can I convert an integer variable to a stream?
toonski84
02-01-2003, 03:07 AM
what's a stream?
if you mean "string", here:
http://qbasicnews.com/qboho/qckstr
$.shtml
Orisha
02-01-2003, 03:08 AM
im sorry string, yes
toonski84
02-01-2003, 03:14 AM
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))
Qbasicnews.com
>
QBasic
>
QB Discussion & Programming Help
> Convert Integer to Stream