Where to find list of Predefined Constants?

Just starting out? Need help? Post your questions and find answers here.
swhite
Addict
Addict
Posts: 805
Joined: Thu May 21, 2009 6:56 pm

Where to find list of Predefined Constants?

Post 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
Simon White
dCipher Computing
infratec
Always Here
Always Here
Posts: 7664
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Where to find list of Predefined Constants?

Post 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
swhite
Addict
Addict
Posts: 805
Joined: Thu May 21, 2009 6:56 pm

Re: Where to find list of Predefined Constants?

Post by swhite »

Yes that is what I needed. Thank-you
Simon White
dCipher Computing
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Where to find list of Predefined Constants?

Post 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)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
chikega
User
User
Posts: 40
Joined: Fri Dec 04, 2020 3:19 am

Re: Where to find list of Predefined Constants?

Post by chikega »

That was very helpful. Thank you @infratec. :)
Gary E Chike DMD MS
'Experience is what you get when you don't get what you want' Image
Post Reply