02-01-2008 10:57 AM
02-01-2008 11:50 AM
02-01-2008 12:03 PM
Yeah, I saw that post, as well, but didn't feel like it addressed my specific question. I hope I didn't offend anyone by posting a similar question.
It does appear then that a self written function is necessary. It's funny how something this common isn't in a built-in function (unless you use the file dialog, which is built-in). Too bad you can't configure a string control with an expected input (file name, number, phone number, social security number, etc) and have the string control automatically validate the data input. That would be cool.
Thanks to you, Kenny K, for taking the time to answer my post.
02-01-2008 12:33 PM
02-01-2008 12:39 PM
Thanks, DJDDA, for the reply. It does appear I will have to write my own code to perform this function. I just expected it to be built-in somewhere. Seems like a common function (especially for file names).
Where is this feature request form I hear so much about? I would like to submit this for future releases of LabVIEW.
Thanks, again, to all who replied.
02-01-2008 12:43 PM
02-01-2008 12:52 PM - edited 02-01-2008 12:52 PM
02-01-2008 12:56 PM
Oops, forgot to check the valid case,
Seems that in the valid case, it will still think there is a ^ character present, giving you a false output. Any ideas??
02-01-2008 12:56 PM - edited 02-01-2008 12:59 PM
sorry, got click happy with my ultra slow internet at work....
02-01-2008 12:59 PM
Thanks, smercurio_fc, for the link to the Product Suggestion page. I added in my suggestion that some common masks be available for automatic input validation by LabVIEW (phone number, social security number, zip code, file name, etc). I think the string control should have this functionality, and maybe it will someday.
Kenny K, thanks so much for the code!!! I didn't realize it was so easy! I am glad it is such a small chunk of code, which won't slow down processing too much. Your solution is very elegant, simple, and very much appreciated. I can't thank you enough.
Thanks to all posters who helped me out.