TNT Basic Forums > Programming Q&A
< Last Thread     Next Thread >
Thread        Post A Reply

03-17-2003 17:14

Posted by:

Click Here to Email puffin   Find more posts by puffin

does tnt basic support input into a variable? it is such a simple thing to do but i can't figure it out. just to clarify what i mean i'll give some qbasic code:

dim name as string ' declare name as string

print "what is your name?" ' prompt user for name

input name ' input users response
' into name

print "hello "; name 'prints hello and the
'users name

03-17-2003 17:48

Posted by:
No Frills

Click Here to Email No Frills   Find more posts by No Frills

Input commands


if you look in the 'feedback' section, you'll note I asked pretty much the same question.

Sadly, at the minute there are no 'input' or getchar(x) type commands - you have to check for each keypress seperately. And to complicate matters - each contries keyboards (ie French, German etc) will give different codes, as the keys are in different places.

From what I can gather, Input support IS going to be added to TNT - but it's best to ask either Mark, or John-T-Birch, about timescales etc.

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.