0

Hi,

I'm using a datetimepicker in a form and i have a textbox also. I need to list the days clicked separated by a "," in the textbox, however i have no idea how to code it.

ex. i used

dates_chosen.text = datetimepicker1.value.dayofweek.toString

but if i click on another date, then the date is changed in the textbox. I want to keep the date, use a comma (& ",") and paste the next date to click after the comma.

any help very much appreciated

Thank you
Luke

2
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by lukis
0
IF LEN(Datetimepicker1.value.dayofweek.toString)=0 THEN 
dates_chosen.text = datetimepicker1.value.dayofweek.toString
ELSE
dates_chosen.text = DATES_CHOSEN.TEXT +", " + datetimepicker1.value.dayofweek.toString
END IF
0

hi thanks for you help. it worked out fine for me :)

thanks
Luke

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.