It is currently Wed Jun 20, 2018 10:28 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: CompilerSelect
PostPosted: Tue Jan 02, 2018 3:06 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Feb 13, 2010 3:45 pm
Posts: 668
Help wrote:
Works like a regular Select : EndSelect except that only one numeric value is allowed per case. It will tell the compiler which code should be compiled. It's useful when building multi-OSes programs to customize some programs part by using OS specific functions.


Don't know it's a bug or it's by design. In any case, it should be noted in the help that CompilerSelect, unlike Select, allows several evaluations.

Code:
CompilerSelect #PB_Compiler_OS
  CompilerCase #PB_OS_Windows
    Debug "Windows"
  CompilerCase #PB_OS_MacOS
    Debug "MacOS"
  CompilerCase #PB_OS_Linux
    Debug "Linux"
  CompilerCase #PB_Compiler_OS
    Debug "Second Case for OS"
CompilerEndSelect

_________________
sorry for my bad english


Top
 Profile  
Reply with quote  
 Post subject: Re: CompilerSelect
PostPosted: Tue Jan 02, 2018 3:26 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Sep 15, 2003 5:55 am
Posts: 1325
nice catch. i would call it a bug. it should work the same way the regular Select : Case works.

c ya,
nco2k

_________________
If OSVersion() = #PB_OS_Windows_ME : End : EndIf


Top
 Profile  
Reply with quote  
 Post subject: Re: CompilerSelect
PostPosted: Tue Feb 06, 2018 10:34 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 6:14 pm
Posts: 1559
Location: Germany (Saxony, Deutscheinsiedel)
Looks like a bug to me (no missing documentation), so moved the topic to the "Bugs Windows" section for further investigation...

_________________
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye