Solved

using dateclick in monthvirew in vb6

Posted on 2006-11-17
2
167 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
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now