Page 1 of 1
Constant not found: #PB_EventGadget
Posted: Mon Sep 03, 2007 3:57 pm
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
Posted: Mon Sep 03, 2007 3:59 pm
by Progi1984
#PB_EventGadget was replaced by #PB_Event_Gadget
Posted: Mon Sep 03, 2007 4:04 pm
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

Posted: Mon Sep 03, 2007 5:07 pm
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
Posted: Mon Sep 03, 2007 5:24 pm
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
Posted: Mon Sep 03, 2007 6:54 pm
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
Posted: Mon Sep 03, 2007 7:04 pm
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.
Posted: Mon Sep 03, 2007 7:09 pm
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.