D
Dorte
In an ASP.NET application I am using the WriteXML method
of a dataset to export data to XML format. But before
exporting data, I would like to round values in a column
with the datatype double. I have tried to create a new
column and add an expression to enter values from the
source column into the target column and round the values
to having only two decimals.
ds.Tables(0).Columns.Add("Target")
ds.Tables(0).Columns("Target").Expression = "SELECT ROUND
(([Source]),2)"
It generates the following error:
"Missing operand after 'round' operator."
Can the "round" method not be used in this way?
Any help would be appreciated.
Dorte
of a dataset to export data to XML format. But before
exporting data, I would like to round values in a column
with the datatype double. I have tried to create a new
column and add an expression to enter values from the
source column into the target column and round the values
to having only two decimals.
ds.Tables(0).Columns.Add("Target")
ds.Tables(0).Columns("Target").Expression = "SELECT ROUND
(([Source]),2)"
It generates the following error:
"Missing operand after 'round' operator."
Can the "round" method not be used in this way?
Any help would be appreciated.
Dorte