Hi Below is from a Dialog
I am getting errors on posting to the table i believe from the initialize area. they return a value that is not numeric. But i need to keep the original table field to be numeric.
Does anyone know how to convert a character to numeric before the post to the table.
Initialize
CurrentForm.Controls.month = month(date())
CurrentForm.Controls.year = year(date())
CurrentForm.Controls.Day = day(date())
CurrentForm.Controls.store = "Alliston"
After Validate
tbl = table.open("totals as")
tbl.enter_begin()
tbl.store = alltrim(currentform.controls.store.value)
tbl.Month = alltrim(currentform.controls.month.value)
tbl.Year = alltrim(currentform.controls.Year.value)
tbl.Day = alltrim(currentform.controls.Day.value)
tbl.Post_paid__ = alltrim(currentform.controls.Post_Paid.value)
tbl.Pre_paid__ = alltrim(currentform.controls.Pre_Paid.value)
tbl.Data_device = alltrim(currentform.controls.Data_Device.value)
tbl.Upgrade_mig = alltrim(currentform.controls.Upgrade.value)
tbl.Esn_with_phone = alltrim(currentform.controls.Year.value)
tbl.Coam = alltrim(currentform.controls.Coam.value)
tbl.Extended_warranty = alltrim(currentform.controls.EWP.value)
tbl.Fun_bundles = alltrim(currentform.controls.Fun_Bundle.value)
tbl.Expressvu = alltrim(currentform.controls.Express_Vu.value)
tbl.High_speed_ = alltrim(currentform.controls.HSE.value)
tbl.Bell_bundle = alltrim(currentform.controls.Bell_Bundle.value)
tbl.enter_end(.t.)
tbl.close()
I am getting errors on posting to the table i believe from the initialize area. they return a value that is not numeric. But i need to keep the original table field to be numeric.
Does anyone know how to convert a character to numeric before the post to the table.
Initialize
CurrentForm.Controls.month = month(date())
CurrentForm.Controls.year = year(date())
CurrentForm.Controls.Day = day(date())
CurrentForm.Controls.store = "Alliston"
After Validate
tbl = table.open("totals as")
tbl.enter_begin()
tbl.store = alltrim(currentform.controls.store.value)
tbl.Month = alltrim(currentform.controls.month.value)
tbl.Year = alltrim(currentform.controls.Year.value)
tbl.Day = alltrim(currentform.controls.Day.value)
tbl.Post_paid__ = alltrim(currentform.controls.Post_Paid.value)
tbl.Pre_paid__ = alltrim(currentform.controls.Pre_Paid.value)
tbl.Data_device = alltrim(currentform.controls.Data_Device.value)
tbl.Upgrade_mig = alltrim(currentform.controls.Upgrade.value)
tbl.Esn_with_phone = alltrim(currentform.controls.Year.value)
tbl.Coam = alltrim(currentform.controls.Coam.value)
tbl.Extended_warranty = alltrim(currentform.controls.EWP.value)
tbl.Fun_bundles = alltrim(currentform.controls.Fun_Bundle.value)
tbl.Expressvu = alltrim(currentform.controls.Express_Vu.value)
tbl.High_speed_ = alltrim(currentform.controls.HSE.value)
tbl.Bell_bundle = alltrim(currentform.controls.Bell_Bundle.value)
tbl.enter_end(.t.)
tbl.close()
Comment