FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour DTPICKER and empty Dates
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
DTPICKER and empty Dates
Posted: Tue Dec 16, 2008 12:17 PM

Hi,

I have looked the TestDtp.prg and DateTime.prg in samples directory. I have searched in forum. I have found some solution, but I could not found the found that I searched. (I don't want checkbox)

My Problem: I have empty date fields. I want to use DTPICKER (or something else similiar). When I open the dialogs, DTPICKER converts and says my empty field to Today Date.(Date()). It does not change the my value, but it confuses the my customers mind.

Is it possible to not to say if the var of date is empty?

Thanks,

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 845
Joined: Sun Oct 09, 2005 05:36 PM
DTPICKER and empty Dates
Posted: Tue Dec 16, 2008 03:38 PM

Hakan,
Put the link with btnget class

http://forums.fivetechsoft.com/viewtopi ... 1ee46a5d17

regards
Paco

____________________

Paco
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
DTPICKER and empty Dates
Posted: Tue Dec 16, 2008 04:02 PM

Thanks Paco,

I will check it.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
DTPICKER and empty Dates
Posted: Wed Dec 17, 2008 08:45 AM
Hakan,

add DTS_SHOWNONE to the style of the control

example in .rc file:
CONTROL "", 202, "SysDateTimePick32", DTS_SHOWNONE|WS_TABSTOP, 86, 82, 62, 12
kind regards

Stefan
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
DTPICKER and empty Dates
Posted: Wed Dec 17, 2008 09:29 AM

Thanks Stefan,

I don't use resource editor. Is it possible to write it directly in application.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
DTPICKER and empty Dates
Posted: Wed Dec 17, 2008 10:18 AM

Hi,

I have found How to use it, but enabled the checkbox. I don't want to see the checkbox.

I think This problem is related the "SysDateTimePick32". I think we should use normal masked editbox with user defined function that is mentioned before messages in this thread.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
DTPICKER and empty Dates
Posted: Thu Dec 18, 2008 08:36 AM
Hakan,

Defining it from source you can write
@x,y DTPICKER oDate VAR dDate ....
oDate:nStyle := nOr (DTS_SHOWNONE,oDate:nStyle)


The checkbox is unchecked, if dDate is empty.
kind regards

Stefan
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
DTPICKER and empty Dates
Posted: Fri Dec 19, 2008 01:02 AM

I think the best is add a calendar browse to GET / BTNGET action clause.
The datepicker class works not well as GET class.
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651

Continue the discussion