Is there a way to check a length of an integer variable, and if is too long just trim it? I have a field in a database that accepts 3 characters. Length is 3.
So is it possible to do like it's done with string variable?
example:
cust_ref = cust_ref.Length > 20 ? cust_ref.Substring(0, 19) : cust_ref;
Thanks!
intis always 4 bytes".