02-10-2019 07:37 PM
Hi,
I am trying to prevent empty string from being logged in a SQL database. If the program work correctly, it will see if two strings are matched. If the two string are matched, the string will be logged to database. If mismatched, the string should not be logged and produce an error message. The problems that I am facing is that the "Match Pattern.vi" produce an empty string if mismatched and still logged to the database. How can I prevent that from happening?
Solved! Go to Solution.
02-10-2019 09:19 PM
The typical way is to use the "offset past match" output and use Greater Or Equal To Zero. If that is TRUE, then log; if FALSE, do nothing. This can be easily accomplished with a simple Case Structure.
02-11-2019 02:35 PM
Did you try testing the string(s) using the Empty String? function on the Comparison Palette?
Bob Schor