You can use something like this, assuming t is a DataTable

1
2
3
4
 

[for r in t.Rows -> r.Item(0).ToString()] |> Array.ofList;;

or

1
2
[for r in t.Rows -> r.Item("name").ToString()] |> Array.ofList;;

You can use a sequence instead of a list

By on 11/18/2010 11:19 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper