Solved

using dateclick in monthvirew in vb6

Posted on 2006-11-17
2
169 Views
Last Modified: 2008-02-01
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
Comment
Question by:jenkinsdjj
  • 2
2 Comments
 
LVL 22

Expert Comment

by:danaseaman
ID: 17967172
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
 
LVL 22

Accepted Solution

by:
danaseaman earned 200 total points
ID: 17967186
Also it appears you are missing the Byval. The declare here is?
Private Sub MonthView1_DateClick(Index As Integer, ByVal DateClicked As Date)
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question