Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Print Text & Variable

Author
Message
Jac
20
Years of Service
User Offline
Joined: 9th Nov 2003
Location:
Posted: 9th Nov 2003 10:06
Hi,

As you may tell I'm very new to this. I was woundering if anyone could tell me hot to print text and the value of a variable on the same line.

Thanks

JC
PeterLewis
20
Years of Service
User Offline
Joined: 27th Sep 2003
Location: South Africa
Posted: 9th Nov 2003 11:55
a$"this is the variable"
print "this is the text ";a$
PeterLewis
20
Years of Service
User Offline
Joined: 27th Sep 2003
Location: South Africa
Posted: 9th Nov 2003 11:55
a$ = "this is the variable"
print "this is the text ";a$
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 9th Nov 2003 22:38
I find the text command works a lot better than the print command if there is any 3d involved. The text command will only accept strings so if you want it to display anything other than a string you need to use STR$().

i as integer : s as string
i = 100 : s = "text"
text 0,0,"integer : " + str$(i)
text 0,15,"string : " + s

p166mmx @ 233 : 256mb : sb 128pci : sis onboard

Login to post a reply

Server time is: 2024-09-21 09:28:01
Your offset time is: 2024-09-21 09:28:01