Global DEFINE

Have some feedback and input to share?
Don't be shy and drop us a note. We want to hear from you and strive to make our site better and more user friendly for our guests and members a like.
Post Reply
User avatar
softdevo@tiscali.it
Posts: 189
Joined: Wed Sep 30, 2015 1:30 pm

Global DEFINE

Post by softdevo@tiscali.it »

Hi everyone.
I'm updating some of my applications and dlls to manage the transition from a MySql database to MariaDB.
For a period of time the two solutions will have to coexist.
The solution I have found is to condition the compilation with a: #DEFINE MariaDB.
The prgs that I have to modify are many.
To simplify my life, is there a way to communicate the DEFINE to the compiler once and for all, and not to write in the head of every #DEFINE MariaDb prg?

Thank you
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Global DEFINE

Post by Chris »

Hi Danilo,

Yes, just go to the app properties, Compiler page and in the general options box just enter

/define:MariaDB
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
User avatar
softdevo@tiscali.it
Posts: 189
Joined: Wed Sep 30, 2015 1:30 pm

Global DEFINE

Post by softdevo@tiscali.it »

Thank you Chris.

Danilo
Post Reply