A QBasic Problem

Now, this may seem a little vague to anyone reading this

but is there a way that, for instance i could get a user

of a program that i was making to enter a name for something

then, use the name that the user typed in to output to

the screen a certain variable that had the name that the

user typed in?


Comments

  • So in other words, you want a variable called whatever and if the user types in "whatever" to display the value of whatever on the screen? The only way I could think of to do this would be to check the program's stack for the variable name and get the value straight from memory. I have been trying to find a way to do this same thing for a while.


  • Well, thanks for your input, and if you ever do find a way could you please send it to me at plague53@hotmail.com. Thanks.







  • : Well, thanks for your input, and if you ever do find a way could you please send it to me at plague53@hotmail.com. Thanks.


    Try

    line input whatever$ 'User inputs anything


    print whatever$ 'prints to screen


  • : Try

    : line input whatever$ 'User inputs anything


    : print whatever$ 'prints to screen


    That would only print what the user inputed. He wants a variable in his program to display when the name is typed.


  • : Now, this may seem a little vague to anyone reading this

    : but is there a way that, for instance i could get a user

    : of a program that i was making to enter a name for something

    : then, use the name that the user typed in to output to

    : the screen a certain variable that had the name that the

    : user typed in?


    so in a way if you would have wanted to see the variable

    var and it is stored in say... varname$ then you want ot use varname$

    as a pointer to the variable var the only thing is that you dont use

    a hexadec number as an adress but a string.

    it must be possible somehow. (like open opens a file at the location of a string

    there must be some command that opens the memory on some location...


    good luck anyway.




Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories