PureBasic 5.10 - Granted wishes release - is out !

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: PureBasic 5.10 - Granted wishes release - is out !

Post by netmaestro »

Did SoundFrequency() be vanished?
SoundFrequency() is indeed vanished, enhanced by a pair of new commands, GetSoundFrequency() and SetSoundFrequency().
BERESHEIT
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: PureBasic 5.10 - Granted wishes release - is out !

Post by luis »

BTW: just tried MacroExpandedCount and TypeOf(), they can be very useful thank you !
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
skywalk
Addict
Addict
Posts: 4210
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: PureBasic 5.10 - Granted wishes release - is out !

Post by skywalk »

STARGÅTE wrote:thx for #PB_Compiler_IsIncludeFile and #PB_Compiler_IsMainFile!
Now I can add a sample code in the include, and it will not compile if it is included, only if the include run alone.
Thanks! That is helpful.
I have CompilerIf - Test code - CompilerEndIf in each of my include files.

Code: Select all

; With v5.0 and below...
CompilerIf #TestLib1  ;<-- need multiple #TestLib2, #TestLib3, etc. for each lib.
  DoSomeTest()
CompilerEndIf
; With v5.1 I can drop the unique #TestLibxx constants:
CompilerIf #PB_Compiler_IsMainFile
  DoSomeTest()
CompilerEndIf
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: PureBasic 5.10 - Granted wishes release - is out !

Post by blueznl »

skywalk wrote:
STARGÅTE wrote:thx for #PB_Compiler_IsIncludeFile and #PB_Compiler_IsMainFile!
Now I can add a sample code in the include, and it will not compile if it is included, only if the include run alone.
Thanks! That is helpful.
I have CompilerIf - Test code - CompilerEndIf in each of my include files.
Yeah! I've been looking for this one! Thx Fred & Co!
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply