PDA

View Full Version : How to test for variable length or limit a variable to a max length



kboller
11-29-2017, 02:05 PM
Hi,

I have a user variable that cannot be longer than 16 characters. How do I limit user entry or test for the length to alert the user of the issue.

Thanks,

Kurt

linder
11-30-2017, 03:13 AM
Kurt,

just use the "Handle String Operation -> Len" script function. If you are using it in a Loop Wizard, you can add a CYCLE after the "Display Message Box..."

Does this help?

Friedrich