FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with date
Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
Problem with date
Posted: Sat Aug 06, 2011 05:49 PM

I want use a get to show a date ( I want not use tcalendar or date pick class)

sample

@ 10,2 GET oGET VAR dDATA of oDlg Size 50,20

with two buttons I want add a day or erase a day

@ 51.3, 242 BTNBMP oBTNDATE[1] FILENAME ".\BITMAPS\PLUS.BMP" OF oDlg SIZE 32,32 NOBORDER ACTION (dData+1,oGet:refresh())
@ 51.3, 25 BTNBMP oBTNDATE[2] FILENAME ".\BITMAPS\MINUS.BMP" OF oDlg SIZE 32,32 NOBORDER action (dData-1 ,oGet:refresh())

I made with dData+1 but it not run make error number

How I can resolve it ?

FWH .. BC582.. xharbour
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: Problem with date
Posted: Sat Aug 06, 2011 10:12 PM

I think you need an assignment operator.
Try dDate += 1 instead. dDate++ may work.

Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
Re: Problem with date
Posted: Sun Aug 07, 2011 10:04 AM

thk run ok

FWH .. BC582.. xharbour

Continue the discussion