Page 1 of 1

#PB_Editor_CreateExecutable not recognized

Posted: Sat Feb 17, 2024 6:01 pm
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?

Re: #PB_Editor_CreateExecutable not recognized

Posted: Sat Feb 17, 2024 6:26 pm
by mk-soft
Show Menu -> Compiler -> Compiler Options -> Constants

Re: #PB_Editor_CreateExecutable not recognized

Posted: Sat Feb 17, 2024 11:46 pm
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.

Re: #PB_Editor_CreateExecutable not recognized

Posted: Mon Feb 19, 2024 3:56 pm
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.

Re: #PB_Editor_CreateExecutable not recognized

Posted: Tue Feb 20, 2024 4:09 pm
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