Date string into a get

Date string into a get

Postby Silvio.Falconi » Thu May 17, 2018 4: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: Select all  Expand view
   
        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

Image

any solution please
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6897
Joined: Thu Oct 18, 2012 7:17 pm

Re: Date string into a get

Postby nageswaragunupudi » Thu May 17, 2018 5:18 pm

Use regular dtpicker
Code: Select all  Expand view

@ r,r DTPICKER oDtt VAR dDate SIZE 100,24 PIXEL OF oDlg PICTURE "dddd, dd mmmm yyyy"
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10468
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Date string into a get

Postby Silvio.Falconi » Thu May 17, 2018 9:10 pm

thanks
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6897
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Danielmaximiliano, Jimmy and 22 guests

cron