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 / Variable 'Global' name is not valid at line X

Author
Message
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 6th Jun 2004 12:55
I have a really weird problem.

When i try to run my program it says:
Variable 'Global' name is not valid at line 9

But there is not even any Global Variable or anything in line 9. The line doesnt even contain any variable stuff
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 6th Jun 2004 12:59 Edited at: 6th Jun 2004 12:59
Sometimes the line numbers are wrong look at lines 6 thru 12. Its another bug.

[edit] I meant the line numbers being wrong is a bug not your problem.

"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 6th Jun 2004 13:01 Edited at: 6th Jun 2004 13:02
I looked through everything
i cant find the problem..
Can You?

I Pasted the first 22 lines of code


set window on
set window position SCREEN WIDTH()/3, screen height()/4
set display mode 800,600,16
Set window layout 1,1,2
Set window Title "MÃ¥sle's Fishgame"
Sync Rate 60

Set Text Size 15
Set Text To Bold
Backdrop Off

Global Bubbles:Global Score
Global BubbleX:Global BubbleY
Global FishX:Global FishY
Global Fish2X:Global Fish2Y
Global Fish3X:Global Fish3Y
Global Fish4X:Global Fish4Y
Global Fish5X:Global Fish5Y
Global Fish6X:Global Fish6Y
Global BonusCheck:Global BonusCount
Global Lives:Global FishKill
Global MusicOn
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 6th Jun 2004 13:03
Have you named a variable "Global"? its a reserved word so it will bring up an error if you try to use it as a variable.

Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 6th Jun 2004 13:06
I didnt name any variable 'Global'.
I even did a search through the entire sourcecode to see if i did. But i didnt. And why would i? I know its a reserved name
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th Jun 2004 13:52
Put the commands on different lines. DBPro has problems sometimes with multi-command lines.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 6th Jun 2004 14:05
Thanks alot IanM

Now it worked

By the way... They should make an update where these anoying bugs are removed
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th Jun 2004 14:28
Read the post 'You wanted to know ...' at the top of the DBPro discussion forum

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
Monzi
20
Years of Service
User Offline
Joined: 10th May 2004
Location: Denmark
Posted: 6th Jun 2004 21:22
Ah great .. Can hardly wait for those upgrades hehe
Gonna be great.
Also the "cant edit within function"-bug really really pisses me off sometimes.

Login to post a reply

Server time is: 2024-09-22 12:31:27
Your offset time is: 2024-09-22 12:31:27