Why i cannot display today date inside Text BoxI want to display my report generated on which date inside the text box. But i couldn't get it work. Please advise.
My Script:
Names Default To Here( 1 );
win = New Window( "Example",
H List Box(
Lineup Box(
Text Box( "Updated on:", Short Date( Today() ) << Set Font Size( 14 ), << Set Font Style( "Bold" ), << Justify Text( "center" ))
)
)
);Re: Why i cannot display today date inside Text BoxJim is correct, but you could keep the messages to change the font inside the function call to create the text box if you separate them from the other arguments with a comma:
Names Default To Here( 1 );
win = New Window( "Example",
H List Box(
Lineup Box(
Text Box(
"Updated on:" || Short Date( Today() ),
<<SET font="" size=""></SET>Re: Why i cannot display today date inside Text BoxThanks txnelson. It work like champ!Re: Why i cannot display today date inside Text BoxThere were several syntax errors. Look at the corrected script below
Names Default To Here( 1 );
win = New Window( "Example",
H List Box(
Lineup Box( tb = Text Box( "Updated on:" || Short Date( Today() ) ) )
)
);
tb << Set Font Size( 14 ) << Set Font Style( "Bold" ) << Justify Text( "center" );