forums

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

01-19-2006 18:00

Posted by:
Gustav

Location:
Lund, Sweden

Click Here to Email Gustav   Find more posts by Gustav

I just tried basic4gl for windows and darkBasic (old version) and there is a command called INPUT.
I don't know how to do this on TNT but with that command you could ask the user something.
Like:
DIM age

INPUT "How old are you"; age
PRINT age

I'm not really enlighted when it comes to programming,
but I want to learn stuff like this.
Is there a way to translate this code to TB?

01-19-2006 20:43

Posted by:
allnodcoms

Location:
hertfordshire (England)

Click Here to Email allnodcoms   Find more posts by allnodcoms

No problem...

There are a couple of commands that will help you here: 'Clear Keyboard' and 'String Editor Contents'. The second of these commands holds a list of what your user has typed, and the first one clears this list once you have got the data from it. There is no generic INPUT call as in other BASICs, but our version is far more powerful, as you will see when you have a play with it.

There is a handy guide held on the TNT Learning pages which details keyboard input. Try this link for the full tutorial.

Descriptions of the individual commands can be found below:

String Editor Contents

Clear Keyboard

Hope this helps...

Danny (nods)

01-21-2006 21:44

Posted by:
Gustav

Location:
Lund, Sweden

Click Here to Email Gustav   Find more posts by Gustav

Thanks

Thanks, I'll check it out.

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.