Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

masked textbox to numeric

$
0
0

Im trying to convert a textbox information to decimal like the following:

01 FIELD PIC 9(10)

...

SET FIELD TO TYPE System.Convert::ToDecimal(self::textbox1::Text)

The problem is that the textbox contains a mask, and the function tries to convert "(XX)XXXX-XXXX" to numeric, and fails.

Is there a way to make the textbox recieve only the typed information?


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>