Numbers & Strings

Is it possible to store a number as a string? For example:



My number is 255

I want the string to be 255 also. I tried:



mystring$ = number



It griped to me about invalid type statement, or something like that.



Any ideas?


Comments

  • Sure is! Consider the following:



    print "Please enter a number."

    input number

    numberstring$ = STR$(number)

    print "You entered:"; number

    print "As a string, this is: " numberstring$



    Any other questions, just post.


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