By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,154 Members | 1,024 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,154 IT Pros & Developers. It's quick & easy.

column to array

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
"Brian Henry" <br**********@newsgroups.nospam>
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

Nov 21 '05 #2

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

"Cor Ligthert" <no************@planet.nl> wrote in message
news:OZ**************@TK2MSFTNGP14.phx.gbl...
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
"Brian Henry" <br**********@newsgroups.nospam>
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


Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.