Solved

how to obtain the date i choice when i pick a calendar

Posted on 2011-03-06
3
440 Views
Last Modified: 2012-05-11
I must put in a text field, the date that the user choices when he picks a calender in a ole object ina form. how can i do that? I saw the exemple in a visual foxpro samples, but there isn´t the code.
can i cange the picture of the calendar in the ole object?
thanks very much
0
Comment
Question by:luciliacoelho
  • 2
3 Comments
 
LVL 41

Accepted Solution

by:
pcelba earned 500 total points
ID: 35048400
This depends on the OLE control you are using on your form. Many Date entry controls exist and you have to look what properties and events they do have in design mode and test it if no documentation exists.

E.g. MS DateTime Picker 6.0 OLE control has the selected date and time in _Value property and to copy it into a text box on the same form can be done e.g. in Change event:

THIS.Parent.Text1.Value = THIS._Value
THIS.Parent.Refresh

An answer to your second question is also not possible without calendar control name.

BTW, what VFP sample are you talking about?

And the last note: Do you know VFP Calendar Window?

Try  ACTIVATE WINDOW Calendar

the selected date is stored in _diarydate variable.
0
 

Author Comment

by:luciliacoelho
ID: 35048535
thanks Pcelba, your solution solvs my problem. of the data field contents, but the image of the calendar i don´t know where i can change it
I use  DateTime Picker 6.0 OLE
thansk
0
 
LVL 41

Expert Comment

by:pcelba
ID: 35048876
Are you sure it is possible to change the calendar image? Do you have some link saying that?

You may change the output value format as described e.g. here: http://msdn.microsoft.com/en-us/library/system.windows.forms.datetimepicker.customformat.aspx
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Scrolling a grid 3 1,503
Does FoxPro Version 9 Run on a Windows 7 Professional 64-bit Computer? 13 11,188
VFP automation fails after upgrade to Word 2010 18 511
SQL Select Statement Question. 5 128
Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
Data breaches are on the rise, and companies are preparing by boosting their cybersecurity budgets. According to the Cybersecurity Market Report (http://www.cybersecurityventures.com/cybersecurity-market-report), worldwide spending on cybersecurity …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

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