Constant not found: #PB_EventGadget

Just starting out? Need help? Post your questions and find answers here.
JElliott
User
User
Posts: 16
Joined: Mon Sep 03, 2007 3:44 pm
Location: Connecticut, USA

Constant not found: #PB_EventGadget

Post by JElliott »

Hi,

I'm new to PB and have been trying to compile various samples but I get the following error for every sample that uses #PB_EventGadget.

Constant not found: #PB_EventGadget

I'm using the latest version 4.02 and was wondering if this was one of the changes made from 3.94 - however after several forum searches and looking at the help file - and the changes section I can find no answer. Can some please shed some light on this for me.

Thanks,

Jeff
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

#PB_EventGadget was replaced by #PB_Event_Gadget
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

welcome to the forums.

such little problems you can avoid if you activate the autocomplete function of the editor. ;)

changes in the order of parameters, like with OpenWindow(),
you can easily see in the statusbar, were the required Parameters of the actual command are displayed.

additionally, there is a change history in the Help

have fun with PB :D
oh... and have a nice day.
JElliott
User
User
Posts: 16
Joined: Mon Sep 03, 2007 3:44 pm
Location: Connecticut, USA

Post by JElliott »

Thanks to both of you for your quick and very helpful replies - I actually got several samples to compile correctly now. Is there a list of constants some where? I have found some of them listed with specific commands but not #PB_Event_Gadget.

I could not find #PB_Event_Gadget in the help file at all - looked at history, changes and searched. Looks like most of the difference is an underscore after the Event_ but wondered if there is a definitive list somewhere?

Again many thanks for getting me started.

Jeff
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

JElliott wrote: I could not find #PB_Event_Gadget in the help file at all - looked at history, changes and searched. Looks like most of the difference is an underscore after the Event_ but wondered if there is a definitive list somewhere?
Tools -> Structure Viewer -> Constants
JElliott
User
User
Posts: 16
Joined: Mon Sep 03, 2007 3:44 pm
Location: Connecticut, USA

Post by JElliott »

Trond wrote:
JElliott wrote: I could not find #PB_Event_Gadget in the help file at all - looked at history, changes and searched. Looks like most of the difference is an underscore after the Event_ but wondered if there is a definitive list somewhere?
Tools -> Structure Viewer -> Constants
Thanks - again very helpful.

Jeff
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

In the manual there is also a page listing all constants mentioned in the manual
with links to the help pages.
(Its the "PureBasic Constants" link under "Overview" on the help index page)

The renaming of #PB_EventXXX to #PB_Event_XXX was the only renaming of
constants that took place as far as i remember.
quidquid Latine dictum sit altum videtur
DarkDragon
Addict
Addict
Posts: 2345
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

freak wrote:In the manual there is also a page listing all constants mentioned in the manual
with links to the help pages.
(Its the "PureBasic Constants" link under "Overview" on the help index page)

The renaming of #PB_EventXXX to #PB_Event_XXX was the only renaming of
constants that took place as far as i remember.
Well, but we should say that #PB_Event_XXX was also available in previous versions of PB as synonyms.
bye,
Daniel
Post Reply