possiblity to send #CENTER and other similars as argument.

Feature requests for future versions of Hollywood can be voiced here
Post Reply
Bugala
Posts: 1178
Joined: Sun Feb 14, 2010 7:11 pm

possiblity to send #CENTER and other similars as argument.

Post 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?
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

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

Post 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.
Post Reply