It is currently Sat Jul 20, 2019 7:40 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [Done] PB5.70 Constant #PB_Database_MySQL missing!
PostPosted: Sat Jan 12, 2019 1:15 pm 
Offline
Always Here
Always Here
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 5754
Location: Berlin - Germany
The Constant #PB_Database_MySQL is not defined!

Workaround:
Code:
CompilerIf Defined(PB_Database_MySQL, #PB_Constant) = 0
  #PB_Database_MySQL = 4
CompilerEndIf


Greetings - Thomas

_________________
PureBasic 5.70 | SpiderBasic 2.21 | Windows 10 Pro (x64) | Linux Mint 19.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.70] Constant #PB_Database_MySQL missing!
PostPosted: Sun Jan 13, 2019 1:29 am 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 13, 2010 3:45 pm
Posts: 865
Why enclosed in CompilerIf?

I even think the CompilerIf is counterproductive. If the constant is introduced and has a different value, you will get at least an compiler message without CompilerIf.

_________________
sorry for my bad english


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.70] Constant #PB_Database_MySQL missing!
PostPosted: Sun Jan 13, 2019 12:03 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Oct 09, 2007 2:15 am
Posts: 1065
Also on windows this constant is missing ...

@Josh: It is intended that Fred could give the constant a different value for whatever reason. With the CompilerIf statements, the code written so far remains executable.

_________________
PureBasic 5.70 LTS (Windows x86/x64) | Windows10 Pro x64 | Z370 Extreme4 | i7 8770k | 32GB RAM | iChill GeForce GTX 980 X4 Ultra | HAF XF Evo​​
English is not my native language... (I often use DeepL to translate my texts.)


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.70] Constant #PB_Database_MySQL missing!
PostPosted: Mon Feb 18, 2019 10:16 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13595
Location: France
Fixed.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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