Re: centering display

new topic     » goto parent     » topic index » view thread      » older message » newer message
Senator said...
integer RM = 50 
display("[c:50]", {"This text is centered"}) 
display("[c:RM]", {"This text is not centered"}) 
constant VC=graphcst:video_config() 
-- or 
RM = VC[VC_COLUMNS] 
display("[c:RM]", {"This text is not centered"}) 

Is there anyway to use a variable to pass a value to the the display center function?

Since it's a string anyway, you could use

display("[c:" & sprint(RM) & "]", {"This text is not centered"}) 

That's one way.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu