Gentlemen;
I'd like to know how to change the properties of a label textbox at runtime.
I'm looking to be able to change the font and font size on the fly during the printing of the labels.
I understand I probably need to write a udf() to do something like this.
FUNC txtformat
DO CASE
CASE LEN(text_str) <=25
*** USE THIS FONT
*** USE BIGGER FONT SIZE
CASE LEN(text_str) >25 .AND. LEN(text_str) <= 50
*** USE ANOTHER FONT
*** USE MEDIUM FONT SIZE
CASE LEN(text_str) >50 .AND. LEN(text_str) <= 75
*** USE ANOTHER FONT
*** USE SMALL FONT SIZE
ENDCASE
Is this possible?
Could I ask for a coding example to accomplish this?
TIA - Wayne
...all this and tap dancing too!
I'd like to know how to change the properties of a label textbox at runtime.
I'm looking to be able to change the font and font size on the fly during the printing of the labels.
I understand I probably need to write a udf() to do something like this.
FUNC txtformat
DO CASE
CASE LEN(text_str) <=25
*** USE THIS FONT
*** USE BIGGER FONT SIZE
CASE LEN(text_str) >25 .AND. LEN(text_str) <= 50
*** USE ANOTHER FONT
*** USE MEDIUM FONT SIZE
CASE LEN(text_str) >50 .AND. LEN(text_str) <= 75
*** USE ANOTHER FONT
*** USE SMALL FONT SIZE
ENDCASE
Is this possible?
Could I ask for a coding example to accomplish this?
TIA - Wayne
