Link to home
Start Free TrialLog in
Avatar of Peter Kiers
Peter KiersFlag for Netherlands

asked on

Parse a double

Hi,

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(); 
            }

Open in new window


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
Avatar of wdosanjos
wdosanjos
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Peter Kiers

ASKER

Thanks. Peter