#PB_Editor_CreateExecutable not recognized

Just starting out? Need help? Post your questions and find answers here.
Axolotl
Addict
Addict
Posts: 873
Joined: Wed Dec 31, 2008 3:36 pm

#PB_Editor_CreateExecutable not recognized

Post by Axolotl »

Hi there,

I like to use the following constants, but I don't understand why they are not recognized by the IDE?
(I hadn't even noticed it before because I had always copied it from other codes.....)

Code: Select all

Debug #pb_editor_createexecutable 
Debug #PB_Editor_BuildCount 
Debug #PB_Editor_CompileCount 
Furthermore, it seems to be a (very old) inconsistency that both the IDE constants and the EditorGadget constants start with #PB_Editor_ ?
And out of curiosity what do you think about this?
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
User avatar
mk-soft
Always Here
Always Here
Posts: 6320
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: #PB_Editor_CreateExecutable not recognized

Post by mk-soft »

Show Menu -> Compiler -> Compiler Options -> Constants
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Axolotl
Addict
Addict
Posts: 873
Joined: Wed Dec 31, 2008 3:36 pm

Re: #PB_Editor_CreateExecutable not recognized

Post by Axolotl »

Yes, I know. What I mean is that the names are not displayed in the autocomplete list, and the correction to i.e. #PB_Editor_CreateExecutable does not work either.
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
fryquez
Enthusiast
Enthusiast
Posts: 391
Joined: Mon Dec 21, 2015 8:12 pm

Re: #PB_Editor_CreateExecutable not recognized

Post by fryquez »

The IDE only recognize constants read from the compilers build-in list and the ones defined in a sourcefile.

That could be changed by adding them in StructureViewer.pb --> LoadConstantList()

Code: Select all

AddElement(TempList()) : TempList() = "#PB_Editor_CreateExecutable=0"
AddElement(TempList()) : TempList() = "#PB_Editor_BuildCount=0"
AddElement(TempList()) : TempList() = "#PB_Editor_CompileCount=0"
But you right about the names. Something like #PB_IDE_CreateExecutable would make more sense.
Axolotl
Addict
Addict
Posts: 873
Joined: Wed Dec 31, 2008 3:36 pm

Re: #PB_Editor_CreateExecutable not recognized

Post by Axolotl »

fryquez wrote: Mon Feb 19, 2024 3:56 pm But you right about the names. Something like #PB_IDE_CreateExecutable would make more sense.

Yeah, I am pretty sure this will kept like this, because there are all the other Version Information constants. See List below.
Disadvantage: Changes like this would affect a lot of old program code and that's not nice from my point of view.
And it is still a windows only thing, which is probably why most people here are not so interested. But that is fine with me.
BTW: To be honest, I have never used the following constants either:

Code: Select all

  #PB_Editor_FileVersionNumeric
  #PB_Editor_ProductVersionNumeric
  #PB_Editor_CompanyName
  #PB_Editor_ProductName
  #PB_Editor_ProductVersion
  #PB_Editor_FileVersion
  #PB_Editor_FileDescription
  #PB_Editor_InternalName
  #PB_Editor_OriginalFilename
  #PB_Editor_LegalCopyright
  #PB_Editor_LegalTrademarks
  #PB_Editor_PrivateBuild
  #PB_Editor_SpecialBuild
  #PB_Editor_Email
  #PB_Editor_Website
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
Post Reply