The expression contains undefined function call isdate()

Hi I am trying to get all rows from a datatable where the first column
F1 is a date, as this datatable is created of excel, i only want to
deal with rows where the first column is having a date in it.

For Each drow As DataRow In dt.Select("isdate(F1)")
.....code here stripped off , but was to loop through all columns
NEXT

but i get following error when i run the above code
"The expression contains undefined function call isdate()"

So the datatables select method cannot recognize isdate function, but
then what is the other way to do the same?

Any help greatly appreciated
Regards
nlulla [ Mi, 23 April 2008 17:57 ] [ ID #1948363 ]

Re: The expression contains undefined function call isdate()

DataSet .Select does not contain the full gammit of functions like in Sql
Server or even Access.


http://msdn2.microsoft.com/en-us/magazine/cc188790.aspx
might help a little with what is available.


You'll need to go to LINQ if you want more advanced control like that.





"nlulla" <nirav.lulla [at] gmail.com> wrote in message
news:2c976696-8799-4a97-a36e-83715a76d53c [at] x35g2000hsb.google groups.com...
> Hi I am trying to get all rows from a datatable where the first column
> F1 is a date, as this datatable is created of excel, i only want to
> deal with rows where the first column is having a date in it.
>
> For Each drow As DataRow In dt.Select("isdate(F1)")
> .....code here stripped off , but was to loop through all columns
> NEXT
>
> but i get following error when i run the above code
> "The expression contains undefined function call isdate()"
>
> So the datatables select method cannot recognize isdate function, but
> then what is the other way to do the same?
>
> Any help greatly appreciated
> Regards
sloan [ Mi, 23 April 2008 19:29 ] [ ID #1948374 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » The expression contains undefined function call isdate()

Vorheriges Thema: ASP .NET 2.0 and Javascript / JS - Select Options disappear
Nächstes Thema: unable to cast type System.Web.UI.Control to System.Web.UI.WebControls.Label and object set to null