QBasic help? Is this right?

liunx

Guest
I have to do something that I'm not sure how to do.. like for example.. <br /><br />If I wanted to make "35 Morton Avenue" = "135 Morton Avenue" how would I do this? The problem is that the value has to be stored as a $ variable.<br /><br />For example.. "35 Morton Avenue" would be entered in the variable "Address$" and I have to somehow make a statement or something that automatically changes the numbers in the "Address$" to equal what they are plus 100. I don't know how to do this because I don't think you can add 100 to a "$" variable because there are letters in it.... that's basically something like what I have to do, help please.<br /><br />for example again:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><br />INPUT "Enter the address of your property:", Address$<br /><br />Address$ = Address$ + 100<br /><br />PRINT "Your new address is:", Address$<br /><!--c2--></div><!--ec2--><br /><br />===========<br />=OUTPUT VIEW=<br />===========<br /><br /><br />Enter the address of your property: 35 Morton Avenue<br /><br />Your new address is: 135 Morton Avenue<br /><br /><br /><br />Thanks for any help you can give <img src="http://static.dreamincode.net/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br /><br />It would be nice to have an answer by 5:00pm Eastern Time...<br /><br />The time at the bottom of this page says 8:27 when it is actually 11:27<br /><!--sizeo:2--><span style="font-size:10pt;line-height:100%"><!--/sizeo--><br /><b><br />IS there no one who can help me here?</b><!--sizec--></span><!--/sizec--><br /><br /><span class='edit'>This post has been edited by <b>StealthTools</b>: 15 Apr, 2008 - 12:56 PM</span>
</div>
 
Back
Top