Hi,
I needed to know which day is a sunday and found out, there is no info in PowerBasic pure (or did I miss somthing).
I found nothing in the winapi32.inc than the SYSTEMTIME type. But while testing this with the monthshow control, I found out that every SYSTEMTIME.wDayOfWeek gives back the same DayOfWeek, even for different days. Everytime the DayOfWeek from today (4 for Thursday).
Do you know a secure method to find out if a day is a sunday ...
The second problem was, which day follows a SYSTEMTIME.day ?
Does someone know how to calc with days in PowerBasic.
PS: normaly I use Xbase++ who has a dDate Datatype, so I can just nNewDate := dDate+5 add days.
Bye
Hubert
I needed to know which day is a sunday and found out, there is no info in PowerBasic pure (or did I miss somthing).
I found nothing in the winapi32.inc than the SYSTEMTIME type. But while testing this with the monthshow control, I found out that every SYSTEMTIME.wDayOfWeek gives back the same DayOfWeek, even for different days. Everytime the DayOfWeek from today (4 for Thursday).
Do you know a secure method to find out if a day is a sunday ...
The second problem was, which day follows a SYSTEMTIME.day ?
Does someone know how to calc with days in PowerBasic.
PS: normaly I use Xbase++ who has a dDate Datatype, so I can just nNewDate := dDate+5 add days.
Bye
Hubert
Comment