05-09-2010 12:46 PM
Hello, i'm creating a .vi that renames files and moves them to a specified directory. The name is generated off of several inputs which from time to time the users enter too few or too many characters into the string control inputs. Example: employee ID number must be 9 characters then enter only 8 or 10 on accident and it allows it to go through causing the file to be named wrong. How can you specify that the string input must be 9 characters and if it is not pop up a message saying the string must be 9 characters.
~Thanks
05-09-2010 12:58 PM
05-09-2010 09:15 PM
05-09-2010 10:09 PM
05-10-2010 04:35 AM
Don't forget to remove White space before doing the comparison, CR + LF count as characters, so someone typing 8chars then hitting enter could give you 9 for your comparison if you are not careful.
James
05-10-2010 05:07 AM