Page 1 of 1

possiblity to send #CENTER and other similars as argument.

Posted: Fri Feb 12, 2016 2:13 pm
by Bugala
Quite a lot of times my code goes:

Code: Select all

if x=Nil
displaytext(1, #CENTER, y)
else
displaytext(1, x, y)
endif
When it could be:

Code: Select all

if x=nil then x=#CENTER
displaytext(1, x, y)
or even:

Code: Select all

my_func(text$, #CENTER, y)
...
displaytext(1, x, y)
Could there be possiblity that in future you could save especially the #CENTER in variables to be used when needed?

Re: possiblity to send #CENTER and other similars as argumen

Posted: Fri Feb 12, 2016 4:15 pm
by airsoftsoftwair
Sure, this is already possible. #CENTER is just a magic number and can also be assigned to variables and then used from there.