Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
way to put var
#1
is there to put var in the middle of a print?

like

Code:
print "whats that VAR HERE"
Reply
#2
yes

Code:
PRINT "A = " + LTRIM$(STR$(a))
PRINT "A =" + STR$(a)
PRINT "A ="; a

2 min responce time!
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply
#3
ok let me give a better example

Code:
print "is that a VAR hum... i wonder"
Reply
#4
if VAR is a str
Code:
PRINT "is that a " + VAR$ + " hum... i wonder"
if VAR is an integer
Code:
PRINT "is that a " + LTRIM$(STR$(VAR)) + " hum... i wonder"

like that?
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply
#5
yes thank you
Reply
#6
yes, yourwelcome
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply
#7
Solance, before you post such kinda question, please read the QB help file. You can find it online, too: http://www.qbasicnews.com/qboho.

Here's the answer for your question:

http://qbasicnews.com/qboho/qckprint.shtml
B 4 EVER
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)