Open kavics opened 1 month ago
Reproduction:
<Field name="NumberField" type="Number"> <DisplayName>NumberField</DisplayName> <Description></Description> <Configuration> <Digits>4</Digits> </Configuration> </Field>
The ',' (colon) cannot be written as the decimal point maybe it is a forbidden key but my culture is HU-hu.
Maybe this pseudo code can work:
let number; if(Number.TryParse(textBox1.text, out number)) return number; if(Number.TryParse(textBox1.text, CultureInfo.InvariantCulture, out number)) return number; throw ("Cannot parse...")
Reproduction:
The ',' (colon) cannot be written as the decimal point maybe it is a forbidden key but my culture is HU-hu.
Maybe this pseudo code can work: