DataColumn.Expression Convert String to Integer

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
 
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

just checking
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top