Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

I Need Help With a BASIC Program


  • Please log in to reply
12 replies to this topic

#1 tigerlily4

tigerlily4

  • Members
  • 2 posts
  • OFFLINE
  •  
  • Local time:09:20 PM

Posted 17 February 2011 - 04:55 PM

When I was a kid I had a Commodore 64 computer. In the manual there was a BASIC program that was only 2-3 lines long. The purpose of this program was to continuously scroll a statement from top to bottom on the page. I'm trying to duplicate this on Windows XP BASIC.
Any help would be appreciated.
Kathleen

Edited by Budapest, 17 February 2011 - 05:17 PM.
Moved from XP ~BP


BC AdBot (Login to Remove)

 


#2 DevonSchreiner

DevonSchreiner

  • Members
  • 37 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:11:20 PM

Posted 17 February 2011 - 05:00 PM

Well I can't really help with syntax, it's been years since I've used Basic but for logic you could use something like:

x=1

while(x=1)
{
print (statement)
}
Devon Schreiner
Tech Blog - TheTechBlender.com
Personal Website - DevonSchreiner.com
Twitter - @DevonSchreiner

#3 noknojon

noknojon

  • Banned
  • 10,871 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Local time:03:20 PM

Posted 17 February 2011 - 05:06 PM

Hi tigerlilly -
If you can wait for an hour or so , I can get my old Commodore 64 computer out of the garage and see if the book is still there -
Unless someone else has quicker access to theirs -

Thank You -
Just click on "Watch Topic" at the top of the page and there should be a notification in your email -

#4 cogs10

cogs10

  • Members
  • 104 posts
  • OFFLINE
  •  
  • Local time:12:20 AM

Posted 17 February 2011 - 05:25 PM

maybe i understand your reasoning for looking up this program:
that you like programming, and want to learn a simple language?
i'm learning java (very slowly), and it will do what basic will do.
the difference is that java is a modern language that will let you
write programs that are of use to any operating system.

#5 tigerlily4

tigerlily4
  • Topic Starter

  • Members
  • 2 posts
  • OFFLINE
  •  
  • Local time:09:20 PM

Posted 17 February 2011 - 05:39 PM

Noknolon, that would be great!

#6 Eyesee

Eyesee

    Bleepin Teck Shop


  • BC Advisor
  • 3,539 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:In the middle of Kansas
  • Local time:12:20 AM

Posted 17 February 2011 - 07:12 PM

If I recall, the old screens used an 80x25 display.
Its been a LONG time since I coded in BASIC but I used to do it all the time & loved it.

Maybe something like:

x=1

For x=1 to 25 do
In the beginning there was the command line.

#7 Eyesee

Eyesee

    Bleepin Teck Shop


  • BC Advisor
  • 3,539 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:In the middle of Kansas
  • Local time:12:20 AM

Posted 17 February 2011 - 07:12 PM

If I recall, the old screens used an 80x25 display.
Its been a LONG time since I coded in BASIC but I used to do it all the time & loved it.

Maybe something like:

x=1

For x=1 to 25 do
locate 1,x
print(statement)
next x

Sorry about the duplicate post.

Edited by Eyesee, 17 February 2011 - 07:14 PM.

In the beginning there was the command line.

#8 noknojon

noknojon

  • Banned
  • 10,871 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Local time:03:20 PM

Posted 17 February 2011 - 07:30 PM

The purpose of this program was to continuously scroll a statement from top to bottom on the page.

The programs that I am reading show how to list a string for up to ~~ 100 or so lines , not a continuous ongoing string ??
As per Eyesee , we have forgotten most of this so I am still reading :busy: -

How did they expect a novice to understand all this stuff back then :smash: - Todays problems are hard enough -

Back later -

#9 noknojon

noknojon

  • Banned
  • 10,871 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Local time:03:20 PM

Posted 17 February 2011 - 08:01 PM

OK ????? Maybe -
I found one called "Random Maze" - Remember this is not designed for your system ----------

10 PRINT "(It indicates that here you press Shift and CLR/Home Keys" I found my 7 key has Home on it -)" note the " marks at start and end
20 PRINT CHR$(205.5+RND(1))
30 PRINT GOTO 20

Description -

This is a neat little program that prints pseudo-mazesall over the screen - As you may expect, line 20 is the key here -

Don't ask me, as I am only quoting from this 164 page beginners manual :wacko: -

#10 Eyesee

Eyesee

    Bleepin Teck Shop


  • BC Advisor
  • 3,539 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:In the middle of Kansas
  • Local time:12:20 AM

Posted 17 February 2011 - 08:15 PM

I had to get an extended ASCII chart to look up what chr$(205) was.
Its an equal sign =
I dont get the 205.5 part though
Where's Groovicus when you need him!

You guys are maing me feel OLD!
In the beginning there was the command line.

#11 noknojon

noknojon

  • Banned
  • 10,871 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Local time:03:20 PM

Posted 17 February 2011 - 08:46 PM

Your First Computer Program Not my words - Isn't this fun :bounce: - Don't blame me !!!!!!
Ready class -
Step 1: Clear the screen by holding down the Shift key and then pressing the CLR/HOME key
Step 2: Type NEW and press return (Enter I suppose)
Step 3: Type 1 PRINT"(Leave space) Your name"; and presss return
Step 4: Type 2 GOTO 1 and press return
When you finish the screen looks like this:
NEW
READY (The computer typed this ?????)
1 PRINT"your name";
2 GOTO
If everything looks all right to you, type the following word, and press Return ; RUN
The screen should fill with your name. At times, it looks like small animated letters travelling up the screen -

This must be the program that you were looking for Kathleen - Don't blame me as I only quoted the directions -:wizardball:

#12 noknojon

noknojon

  • Banned
  • 10,871 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Local time:03:20 PM

Posted 17 February 2011 - 11:17 PM

NOTE - The above may not be a full BASIC program - The following is similar but listed under BASIC -
Your Name in Lights -

10 PRINT "(Press shift and Clr/Home keys)"
20 FOR T = 1 TO 300: NEXT
30 Print "your name"
40 FOR T = 1 TO 300: NEXT
50 GOTO 10

Lines 20 and 40 are time delay loops -

This seems to be more in BASIC language where the first one seems more Computer Related -
I think this is just a variation that Flashes your name in colors -

#13 noknojon

noknojon

  • Banned
  • 10,871 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Local time:03:20 PM

Posted 18 February 2011 - 03:25 PM

http://www.libertybasic.com/programming_tutorials.html This may be a good area to help you with using a modern computer and BASIC -

Most newer computers have their own language built in as part of the system, where BASIC was a program that was used on "empty" systems -

Thank You -




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users