FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Date string into a get
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Date string into a get
Posted: Thu May 17, 2018 04:29 PM
I wish show on a get the date string sample " Saturday, 19 May 2018 " and use the bitmap and action to open a calendar

I made

@ 08,160 GET aGet[3] VAR dDateCheck_in of oFld:aDialogs[1] SIZE 100,11 PIXEL ;
BITMAP ".\bitmaps\cal.bmp" ACTION mycalendar()

to converte dDateCheck into a string data I use a function but I am convinced that the format already exists in windows without resorting to doing special functions or using this

Code (fw): Select all Collapse
     
        Function Stringa_Data( dDate)
          LOCAL cText := ""
            cText += CDoW( dDate ) + ", "
            cText += LTrim( Str( Day( dDate ) ) ) + ". "
            cText += CMonth( dDate ) + " "
            cText += LTrim( Str( Year( dDate ) ) )
   RETURN  cText




and then I made
@ 08,160 GET aGet[3] VAR (dDateCheck_in) of oFld:aDialogs[1] SIZE 150,11 PIXEL ;
BITMAP ".\bitmaps\cal.bmp" ACTION XBrDtPicker( dDateCheck_in,"Seleziona una data",,1 )

but when I open the calendar function XBrDtPicker make error



any solution please
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Date string into a get
Posted: Thu May 17, 2018 05:18 PM
Use regular dtpicker
Code (fw): Select all Collapse
@ r,r DTPICKER oDtt VAR dDate SIZE 100,24 PIXEL OF oDlg PICTURE "dddd, dd mmmm yyyy"
Regards



G. N. Rao.

Hyderabad, India
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: Date string into a get
Posted: Thu May 17, 2018 09:10 PM

thanks

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion