Peter Kiers
asked on
Parse a double
Hi,
I try to parse a double.
But I get this error:
The name 'NumberStyles' does not exist in the current context
What can i do about this?
Greetings,
Peter Kiers
I try to parse a double.
{
btnSwUnit.Text = "Switch to mg/dl";
lblSwUnit.Text = "Glucose Units: mmol/l";
MessageBox.Show("Waardes als form opstart" + Properties.Settings.Default.IsMGDL);
if (Double.TryParse(Properties.Settings.Default.MinVal, NumberStyles.Any, ci, out MinVal))
this.spdMinVal.EditValue = MinVal.ToString();
if (Double.TryParse(Properties.Settings.Default.MinRng, NumberStyles.Any, ci, out MinRng))
this.spdMinRng.EditValue = MinRng.ToString();
if (Double.TryParse(Properties.Settings.Default.MaxRng, NumberStyles.Any, ci, out MaxVal))
this.spdMaxRng.EditValue = MaxRng.ToString();
if (Decimal.TryParse(Properties.Settings.Default.MaxVal, NumberStyles.Any, ci, out MaxRng))
this.spdMaxVal.EditValue = MaxVal.ToString();
}
But I get this error:
The name 'NumberStyles' does not exist in the current context
What can i do about this?
Greetings,
Peter Kiers
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER