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 / Dim command problems

Author
Message
Murdock743
21
Years of Service
User Offline
Joined: 4th Mar 2003
Location:
Posted: 13th Aug 2003 03:11
Could anyone tell me what is wrong here I have not figued it out. it said it couldnt see the command online two.

Cheers,
Christian

Trowbee
21
Years of Service
User Offline
Joined: 12th Apr 2003
Location: United Kingdom
Posted: 13th Aug 2003 03:39
Dunno if its a typo, but the last line should be:

print good_responces$(rnd(8))
Murdock743
21
Years of Service
User Offline
Joined: 4th Mar 2003
Location:
Posted: 13th Aug 2003 03:44
Would it help if I said it was DBP and not dark basic.
Cheers,
Christian

Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 13th Aug 2003 04:00
Yes there is that typo, but you have forgotten your your = signs?



Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
Murdock743
21
Years of Service
User Offline
Joined: 4th Mar 2003
Location:
Posted: 16th Aug 2003 00:13
Thanks a bunch didnt see that.
Cheers,
Christian

Murdock743
21
Years of Service
User Offline
Joined: 4th Mar 2003
Location:
Posted: 16th Aug 2003 00:45
okay new problem it wont change responces yes I know the sync commands are not needed its the only way i can get it to say something other than: sorry to hear that.
Cheers,
Christian


spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 16th Aug 2003 00:52
Put RANDOMIZE TIMER() at top of program. This makes series of random numbers different every time you run.

The two lines you define the good and bad words should go before where you test them, preferably before the 'do' command.

rnd(8) gives a range 0-8. Change to rnd(7)+1 to give range of 1-8

The programmer formerly known as sonic
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 16th Aug 2003 00:55
Try this:



The programmer formerly known as sonic
Murdock743
21
Years of Service
User Offline
Joined: 4th Mar 2003
Location:
Posted: 16th Aug 2003 01:02
Thank you so very much now it works!!!
Cheers,
Christian

spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 16th Aug 2003 01:16
Naturally!

The programmer formerly known as sonic

Login to post a reply

Server time is: 2024-09-20 19:39:05
Your offset time is: 2024-09-20 19:39:05