Page 1 of 1

Where to find list of Predefined Constants?

Posted: Fri Jan 21, 2011 4:58 pm
by swhite
Hi

I know that all the Purebasic constants are shown in the help file however it appears to me that there are other predefined constants not shown. For example the following code in my project generates an error saying that constant #STX has already been declared with a different value however the declaration is not in my code. So how do I find where #STX has been defined previously?

Code: Select all

#STX =                Chr($2)
Thanks,
Simon

Re: Where to find list of Predefined Constants?

Posted: Fri Jan 21, 2011 5:01 pm
by infratec
Hi,

in the IDE open 'Tools'->'Structure..' and than go to the tab 'constants'

Sorry, I have the german version installed :oops:

If you than type in 'STX' you will see it :mrgreen:

Code: Select all

#STX = 2
Bernd

Re: Where to find list of Predefined Constants?

Posted: Fri Jan 21, 2011 6:30 pm
by swhite
Yes that is what I needed. Thank-you

Re: Where to find list of Predefined Constants?

Posted: Fri Jan 21, 2011 7:31 pm
by IdeasVacuum
....and you will find a list of Windows Constants to download here:

http://www.professorcad.co.uk/prof_gadgets_pb (bottom of the page)

Re: Where to find list of Predefined Constants?

Posted: Mon Jan 02, 2023 7:37 am
by chikega
That was very helpful. Thank you @infratec. :)