Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,243 Programmers. There are 2,249 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

QBasic help? Is this right?

 
Reply to this topicStart new topic

QBasic help? Is this right?, Can you tell me if this will work?

StealthTools
post 15 Apr, 2008 - 05:46 AM
Post #1


New D.I.C Head

*
Joined: 11 Mar, 2008
Posts: 31



I have to do something that I'm not sure how to do.. like for example..

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.

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.

for example again:
CODE

INPUT "Enter the address of your property:", Address$

Address$ = Address$ + 100

PRINT "Your new address is:", Address$


===========
=OUTPUT VIEW=
===========


Enter the address of your property: 35 Morton Avenue

Your new address is: 135 Morton Avenue



Thanks for any help you can give smile.gif

It would be nice to have an answer by 5:00pm Eastern Time...

The time at the bottom of this page says 8:27 when it is actually 11:27


IS there no one who can help me here?


This post has been edited by StealthTools: 15 Apr, 2008 - 12:56 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


StealthTools
post 16 Apr, 2008 - 05:16 AM
Post #2


New D.I.C Head

*
Joined: 11 Mar, 2008
Posts: 31

Some help I received... more like none.. and this WAS SIMPLE!!!

the problem was that I needed to: Concatenation; join two strings

Does anyone even go to these threads???? icon_down.gif

This post has been edited by StealthTools: 16 Apr, 2008 - 05:16 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

tootintorrey
post 22 Apr, 2008 - 02:16 PM
Post #3


New D.I.C Head

*
Joined: 24 Mar, 2008
Posts: 13

you realize that these people are here to help us not baby us?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

StealthTools
post 25 Apr, 2008 - 06:15 AM
Post #4


New D.I.C Head

*
Joined: 11 Mar, 2008
Posts: 31

I received no help at all.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

dustin33569
post 30 Apr, 2008 - 01:28 PM
Post #5


New D.I.C Head

*
Joined: 30 Apr, 2008
Posts: 1

I believe the following should work:

INPUT "Enter the address of your property:"; Address
PRINT "Your new address is:", Address + 100


I used JustBASIC to compile this. It's a free program. Also, the person will only need to put in their house number. The text in the address could goof it up.

Hope this helps!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/16/08 08:23AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month