[Gambas-user] macros conditionals supported? (at code, at compile time and at runtime time)?

PICCORO McKAY Lenz mckaygerhard at ...626...
Fri Jan 22 15:00:41 CET 2016


there its any way of choose piece of logic in gambas code: i ilustrate with
a example:

in smtp component between gambas << 3.5 and gambas >> 3.6 the body now has
a method:

in gambas << 3.6 was:

hmail as new SmtpClient
hmail.Add("this its the body of the text mail")


in gambas >> 3.6 now are:

hmail as new SmtpClient
hmail.Body("this its the body of the text mail")


so how can i in code made something like in c:

#if gambas < 3.6
hmail.Add("this its the body of the text mail")
#else
hmail.Body("this its the body of the text mail")
#endif





Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com



More information about the User mailing list