DOS-style INPUT from Keyboard?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clayga
    New Member
    • Oct 2006
    • 1

    DOS-style INPUT from Keyboard?

    Hi,

    Trying to help my sons do some VB programming. they've got hold of some books with simple program listings but they're all 1980's BASIC (ZX81 et al).

    The biggest problem I've found so far (we're assuming we would run VB in Command Line mode) is that the lines like:
    INPUT T1

    don't work any more.

    The issue seems to be that old BASIC interpreters always assumed that "INPUT" by itself referred to input from the keyboard, whereas VB insists on taking input from an open file number. How do you go about reading a value into a variable from direct keyboard input in VB? Or is there still a "logical file" for keyboard (along the lines of the STDIN, STDOUT, STDERR of older-style C and Unix etc)?

    We're talking text-mode programmes here, so the all-singing msgbox() routine is not really what I'm after...

    Thanks!
Working...