Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27350

VS 2008 Non significant zeroes in textbox

$
0
0
Hi,
A simple calculation result is returned when I enter valid numbers in a textbox and click the compute button.
When the textbox is empty or when the value entered is 0 the process stops thanks to the "exit sub":

If txtbox.text=string.empty orelse txtbox.text="0" then exit sub.

But when I enter one of these : "." or ".0" or "0." or more than one zero like "00" or "000" ,
the "exit sub" has no effect and all a datagridview column is filled with "0.00"

Any help is greatly appreciated, with many thanks.

Viewing all articles
Browse latest Browse all 27350

Trending Articles



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