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
Constant not found: #PB_EventGadget
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
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
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

oh... and have a nice day.
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
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
Thanks - again very helpful.Trond wrote:Tools -> Structure Viewer -> ConstantsJElliott 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?
Jeff
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.
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
-
- Addict
- Posts: 2345
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Well, but we should say that #PB_Event_XXX was also available in previous versions of PB as synonyms.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.
bye,
Daniel
Daniel