Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convert Integer to Stream
#1
How can I convert an integer variable to a stream?
Reply
#2
what's a stream?

if you mean "string", here: http://qbasicnews.com/qboho/qckstr$.shtml
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply
#3
im sorry string, yes Wink
Reply
#4
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))
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)