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 / intro prob

Author
Message
gothboy 101
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 6th Aug 2004 05:35
it says could not determin perameter type of "line 101 or" at line 100.



Dragonseige
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 6th Aug 2004 05:46
This whole line makes no sence to me can you explain what you want it to test and do?


You possibly might want it to do


gothboy 101
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 6th Aug 2004 05:47
thank you lost in thought for youre help

Dragonseige
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 6th Aug 2004 05:48
Glad I could help If that works like you wanted

gothboy 101
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 6th Aug 2004 05:51
hey lost in thought it says it can't determine peramiter of "line 108"


Dragonseige
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 6th Aug 2004 06:27 Edited at: 6th Aug 2004 06:35
This is NOT a valid command.

goto line 108

The help file says:

Quote: "GOTO
This command will jump to the specified label in the program. Unlike the GOSUB command, you cannot return from a call when using the GOTO command. The label can be made up from any combination of alphabetic characters, but you must end the declaration of the label using a colon( : ). You only need to use a colon when you are declaring the label, and should not be used when calling the label from a GOTO command.

SYNTAX
GOTO JumpLabel
"


So, something like

goto line108

rem blah blah blah

line108:

Labels are like bookmarks and you can jump to them without having to count line numbers. BTW, commas are never used as part of conditional syntax in DB, they are only used to separate parameters of command. The reason that you are getting an error message about a line is that LINE is a reserved word in DB.

Quote: "LINE
This command will put a line on the screen in the current ink color. The command requires two sets of Coordinates to draw a line from one to the other on the screen. The parameters should be specified using integer values. You can also draw to a bitmap, by using the SET CURRENT BITMAP command.

SYNTAX
LINE X1,Y1,X2,Y2
"


The compiler sees the keyword LINE and expects four parameters. Thus, your use of LINE is masking your GOTO error.
--
TAZ

"Do you think it is wise to provoke him?" "It's what I do." -- Stargate SG-1
gothboy 101
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 6th Aug 2004 06:34
thanks zircher

Dragonseige
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 6th Aug 2004 06:36
Glad to help, just remember that the help files are your friend.
--
TAZ

"Do you think it is wise to provoke him?" "It's what I do." -- Stargate SG-1
gothboy 101
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 6th Aug 2004 06:50
its supposed to do the first part of the code then goto the 2nd but instead it combined them




Dragonseige

Login to post a reply

Server time is: 2024-11-27 04:48:58
Your offset time is: 2024-11-27 04:48:58