Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to receive only numeric( decimal content) data from string input.

Solved!
Go to solution

In brief,  I need to give </= 12 digits data as input string like "989789856999".

 If I give "1abc23d7bad7657" as input string then need to pop up a message as invalid data,( i.e, if any char,special symboles (expect numaric data) it should be pop up msg like invalid data)

If i give "999999999999" , "912345678912", "123456789123","1233456","99999123"
then it is "valid data" .

 

0 Kudos
Message 1 of 2
(2,419 Views)
Solution
Accepted by topic author l12ec937

A simple Match Pattern to look for anything that is not a number is simple enough to make.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,412 Views)