P
Patrick Sullivan
I am trying to extract two parts of a number from an array element. Numbers
are in the format of 1.10, 2.50, 11.10, etc. Floor and ceiling won't work
right because close to 1.00, I get a zero, and I need the actual integer
part and the fraction part as an int, too.. TIA
here is the data
fields(0) = "Alena Sobran"
fields(1) = "4/4/1977"
fields(2) = "9.00"
code
datetimepicker1.Value = fields(1).ToString ' works
nupdHour.Value = fields(2).ToString ' seems to work
nupdMinute.Value = fields(2).Substring(fields(2).IndexOf(".", 2)).ToString '
wrong value
are in the format of 1.10, 2.50, 11.10, etc. Floor and ceiling won't work
right because close to 1.00, I get a zero, and I need the actual integer
part and the fraction part as an int, too.. TIA
here is the data
fields(0) = "Alena Sobran"
fields(1) = "4/4/1977"
fields(2) = "9.00"
code
datetimepicker1.Value = fields(1).ToString ' works
nupdHour.Value = fields(2).ToString ' seems to work
nupdMinute.Value = fields(2).Substring(fields(2).IndexOf(".", 2)).ToString '
wrong value