Truncate database fields to just show part of it #3522
Question from a CardExchange 6 user:
"I am trying to truncate a middle name so it only displays the first character plus a period. I believe I can use the functions SetLength but I cannot get the syntax correct. Please help."
1 - On the card design you need to create 3 variables:
2 - Create a text object to show the card holder's name with the modification desired. On this text object add the expression below (by double clicking on it)
[First Name] [Copy(<MIddle Name>,1,1)]. [Last Name]
3 - Save and close the card design.
4 - Now on the card mappings map each variable created above to the database fields for first, middle and last name.
Truncate database fields to just show part of it #4933
Since CardExchange version 7 the scripting language used in the designer is Python 2.7, which is fully documented on internet, see
. The Python implementation allows for accessing .NET functions as well, see
Senior Software Engineer
"A reasonable man adapts himself to the world. The unreasonable man persists in trying to adapt the world to himself. All progress, therefore, depends on the unreasonable man." (Bernard Shaw)