Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Doesn't Work! - Hello World Beginner Tutorial - Missing Info?

Author
Message
tylerdurden
21
Years of Service
User Offline
Joined: 24th May 2003
Location: United Kingdom
Posted: 24th May 2003 23:58 Edited at: 25th May 2003 00:01
Hi all, I am brand spanking new to programming so forgive me if this is the most stupid thing ever heard...

In the beginner's guide book, the first tutorial "hello world" doesn't work! (I have DBprofessional). When you hit return after entering a number, the program ends and you return to the interface.

I made it work by sticking in a wait key right at the end (see source code)

PRINT "type in a number..."

INPUT a
FOR x = 1 TO a
PRINT "Hello again!"
NEXT x
WAIT KEY

Without the wait key I was struggling for 20 mins to work out why I couldn't get it working... ***is this missing from the tutorial?***

This doesn't bode well for newcomers to programming... hello world fails... or I'm a missing something? (Like a brain - it has been said)! x-d
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 25th May 2003 00:08
Yes, it's missing. The program would finish so fast that you wouldn't see it if you don't add a WAIT KEY command.
tylerdurden
21
Years of Service
User Offline
Joined: 24th May 2003
Location: United Kingdom
Posted: 25th May 2003 01:11
Thanks for your prompt reply IanM! I thought I was going mad! Nice of you to reply to a complete novice with such a trivial question, but this will help anyone working from the book! x-d

Top Guy!
blather
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: United States
Posted: 26th May 2003 08:48
Nice to be able to post here finaly. Hey tylerdurden get the DB beginners guide, you will get more out of it for sure.

"N. foolish talk esp. in great quantity"
Webster's
Nilrem
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 26th May 2003 15:25
Aye, the DB beginners guide caters for both DB and DBP I highly recommend it for someone not only new to DB/DBP but also new to programming.

I recommend buying it from http://www.amazon.co.uk/exec/obidos/ASIN/1592000096/ref=sr_aps_books_1_1/026-2310858-4726867 for £33.52

I hear and I forget. I see and I remember. I do and I understand.
blather
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: United States
Posted: 27th May 2003 05:40
I wonder how many times I can shamelessly plug that book until I need to ask for a marketing compensation?

"N. foolish talk esp. in great quantity"
Webster's
Nilrem
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 27th May 2003 14:00
Hehe, I do advertise it as much as I can don't I?

I hear and I forget. I see and I remember. I do and I understand.
tylerdurden
21
Years of Service
User Offline
Joined: 24th May 2003
Location: United Kingdom
Posted: 9th Jun 2003 01:02
Thanks all!

The sample Hello World I was referring to was from the book! Missing text on the very first example! aaarrghh! Not good for noobs who understand nothing. The rest of the examples are OK and I'm already at the stage were I can see my own mistakes... [b])

It's still a great book though and I'm coming on in leaps & bounds.

Cheers Guys!

Nilrem
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 9th Jun 2003 01:05
Good to hear tylerdurden (Minus the typo in the book).

I hear and I forget. I see and I remember. I do and I understand.
Ocean Runner
21
Years of Service
User Offline
Joined: 18th May 2003
Location: United States
Posted: 12th Jun 2003 03:12
d

JetRace coming. Watch out!

Login to post a reply

Server time is: 2024-09-20 12:37:52
Your offset time is: 2024-09-20 12:37:52