Thanks Ajit, for the link to Craig's Date Time Picker.  It works well for
me except that I have not found any provision for limiting the minimum and
maximum values.  There also seems to be a bug where setting Hours to 24
results in a permanent extra "M" left hanging in the right margin of the
time field.

Is there something I am missing?  Assuming not - how would I go about
forcing the value to stay between a minimum and maximum value?  Test the
value in the LostFocus  method and adjust if necessary?

Thanks again,

Joe


On Tue, Jun 3, 2014 at 2:16 AM, Ajit Abraham <[email protected]> wrote:

> Hi Joe,
>
>
> To initialize MSComCtl2.DTPicker.2 activex with current date :
>
> [ActiveXName].Year = YEAR(DATE())
> [ActiveXName].Month = MONTH(DATE())
> [ActiveXName].Day = DAY(DATE())
> and so on with hour,minute and second (you have to set the
> [ActiveXName].object.format property to 2 for the time part)
>
> Or you use Craig Boyd's date picker at
> http://goo.gl/D191yl
>
>
> Regards
> Ajit Abraham
>
>
>
> On 6/3/2014 6:56 AM, Joe Yoder wrote:
>
>> I need to set beginning and ending datetime variables.  I thought I would
>> be able to select a control from the VFP system that knows about that data
>> type and I would simply set the min and max values and then let the user
>> choose something appropriate.
>>
>> I started out with the Active- X DTPicker and concluded that it doesn't
>> have a clue about the DateTime type and I couldn't even figure out how to
>> have it display the full MM/DD/YYYY HH:MM:SS format.
>>
>> Next I downloaded RCSDateTimePicker which is done in pure VFP code.  If I
>> were a seasoned developer I could easily modify this code to do what I
>> need
>> but I can't take the time to learn how now.
>>
>> Now I'm bothering you wonderful folks on the list with the question - Is
>> there a control available that can deal directly with VFP's datetime type?
>>
>> Thanks in advance,
>>
>> Joe
>>
>>
>> --- StripMime Report -- processed MIME parts ---
>> multipart/alternative
>>    text/plain (text body -- kept)
>>    text/html
>> ---
>>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/CABQeDnXhd8u6v94iSsXyxmjfAwGYMN9wMz5=0ukx+tbbenj...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to