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 / goto command help

Author
Message
PyRoDooD
21
Years of Service
User Offline
Joined: 16th Sep 2003
Location: NJ, USA
Posted: 25th Sep 2003 02:26
hey,

im new to dbp and im trying to make a password program and i dont know how to use the goto command. it says that that #100007: variable '255,255,255' name is not valid at line 8. please help me

thx for the replys in advance

I NEED HELP TO LEARN DB Pro! PLZ HELP ME!!! there i hope i didnt sound desperate.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 25th Sep 2003 03:02
Looks like the problem is not with GOTO, but specifying a colour. Use

INK RGB(255,255,255)

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 25th Sep 2003 03:07
try putting the password moon in quotes
eg:

if password$="moon" then goto correct else goto wrong
PyRoDooD
21
Years of Service
User Offline
Joined: 16th Sep 2003
Location: NJ, USA
Posted: 25th Sep 2003 05:04
hey thanks guys for the quick replys, but... its still saying the same thing. plz help.

I NEED HELP TO LEARN DB Pro! PLZ HELP ME!!! there i hope i didnt sound desperate.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 25th Sep 2003 19:23
as a general rule, GOTO statements are bad. Try breaking out the code into Subroutines. Have the sub return to the calling code regardless of whether or not the password is wrong, do the condition test in the calling code, and either let the program continue on a successful login, or recall the sub on a failed login. You could also incorporate a counter that lets the user attempt to login a fixed amount of times before the program quits.

This is just general info - I haven't looked at your code

-RUST-
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 25th Sep 2003 20:52
Is the source the latest version? You've still got...

ink (255,255,255)

should be

ink rgb(255,255,255)

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 25th Sep 2003 21:53
Not quite : ink rgb(255,255,255),0

Ink takes two parameters!
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 25th Sep 2003 22:57
duh I Saw the obvious and missed...the obvious!

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
PyRoDooD
21
Years of Service
User Offline
Joined: 16th Sep 2003
Location: NJ, USA
Posted: 26th Sep 2003 02:44
thx guys,

u have all been a big help. IT WORKS!

I NEED HELP TO LEARN DB Pro! PLZ HELP ME!!! there i hope i didnt sound desperate.

Login to post a reply

Server time is: 2024-09-21 01:17:04
Your offset time is: 2024-09-21 01:17:04