I am very new at using cloverleaf and TCL, But does anyone know of a way to check a segment of a message and make sure it only contains numbers? Thanks in advance for any help.
It is a tps proc. The users are required to input an account number into a field. Then, when the messages is passed through the interface the current filter finds a field and if it meets the correct criteria it sends it on. This is working fine, Up until now none of the lab techs have ever entered anything but the correct information into the field. However, one of them could not read the acct# and actually put CAN’TREAD# in the field which caused major problems in the interface and the database of the receiving program. I need to make sure this never happens again. Thanks again.
Boy ask you guys how to start a car and you tell me how to build an engine 😀
As Jim said, the string commands are the most ergonomic. Why would you want to write a proc to do something that could be done with a single core level command?
string is digit $var
returns 1(true) if all digits else returns 0 (false). Use this way the empty string would always be true. If you want the emty string to return false:
string is digit -strict $var
Author
Replies
Viewing 6 reply threads
The forum ‘Cloverleaf’ is closed to new topics and replies.