DataColumn.Expression Convert String to Integer

  • Thread starter Thread starter ronniek
  • Start date Start date
R

ronniek

Hi

I try to use the Expression property of the DataColumn in the following way
..Expression = "Convert(colString, Type.GetType('System.Int32')"
just as the MSDN samples show

colString is a String type column with numeric values

In return I get some syntax error exception.

Does someone know?
How can I use the convert function to convert from a String to an Integer

Thanks,
Ronnie
 
Hi

I try to use the Expression property of the DataColumn in the following way
.Expression = "Convert(colString, Type.GetType('System.Int32')"
just as the MSDN samples show

colString is a String type column with numeric values

In return I get some syntax error exception.

Does someone know?
How can I use the convert function to convert from a String to an Integer

Thanks,
Ronnie

just checking
 
Back
Top