column to array

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

I have a table which only has one column of dates, i need to somehow get
that listing o f dates in a datatable into an array that i can use in a
month calendar as a boldeddates array listing, whats the best way to do
this? thanks
 
Brian,

You can only get that by looping.
It is not part of one collection however the first item from the collection
of datarows in a datatable.
You can do it in my opinion by something as this roughly typed in this
message
\\
dim arrdates(myDatatable.rows-1) as datatime
for i as integer = 0 to mydatatable.rows-1
arrdates(i) = directcast(mydatatable.rows(0)(0),datetime)
next

I hope this helps?

Cor


Cor
 
yea.. thats the way I was already doing it, was hoping there was a method
already developed for this but guess not.
 

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

Similar Threads


Back
Top