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.
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.