ChrisMondo Posted May 6, 2013 Share Posted May 6, 2013 Hi All I have a variable name badge and customer is asking if I can change point size of the names based on the character length supplied in their database file. ex. names containing 1 - 14 characters use 24 point names containing 15 and above use 20 point I apologize if this is rudimentary in nature, but any help would be greatly appreciated. Regards Chris Quote Link to comment Share on other sites More sharing options...
GreggRusson Posted May 6, 2013 Share Posted May 6, 2013 if (Len(Trim(Field("NAME"))) < 15) { return '<z newsize="24"/>' + Trim(Field("NAME")); } else { return '<z newsize="20"/>' + Trim(Field("NAME")); } See page 46 of the Tags reference manual. Another route would be to check out copyfitting and allow text to expand. See page 140 of the User manual for more info. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.