Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • Last Modified:

using dateclick in monthvirew in vb6

Everytime I try to use monthview_ dateclick(index as integer, datepicked as date) my program won't compile and it tells me the format of the procedure is incorrect even though in msdn this is exactly the procedure format given. Please can anyone tell me what the problem is?I have a version working perfectly wih the dtpicker but when used on anther machine the dates do not show in th calender. Any ideas?
david jenkins
0
jenkinsdjj
Asked:
jenkinsdjj
  • 2
1 Solution
 
danaseamanCommented:
monthview_ dateclick(index as integer, datepicked as date) indicates that you are using a control array. If there is only one control without an index than the declare would be monthview_ dateclick(datepicked as date).
Do you have more than one MonthView on the Form?
0
 
danaseamanCommented:
Also it appears you are missing the Byval. The declare here is?
Private Sub MonthView1_DateClick(Index As Integer, ByVal DateClicked As Date)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now