Hi all,
I have a program that issues a monetary entitlement to people if the day they are entitled to that value is selected.
So for example, if they are supposed to receive £2.00 on a Monday, the field "Mon" would have to be "T" or "Y" ("Yes").
However, when the program attempts to scan the table and search if a particular day is "Y", the program skips to "SKIP" and throws an error telling me that "End of file encountered" when I have the command "Do while not EOF()" and after going through a bit of a debug, I found out that it was because the day it was scanning for was not todays the date (or rather the current day that the program is being executed).
Is there a routine where FoxPro can seek through the calendar, see what day of the week it is and marry it up to the table?
I appreciate your comments and help
Thanks
A conclusion is simply a place where you got tired of thinking.
I have a program that issues a monetary entitlement to people if the day they are entitled to that value is selected.
So for example, if they are supposed to receive £2.00 on a Monday, the field "Mon" would have to be "T" or "Y" ("Yes").
However, when the program attempts to scan the table and search if a particular day is "Y", the program skips to "SKIP" and throws an error telling me that "End of file encountered" when I have the command "Do while not EOF()" and after going through a bit of a debug, I found out that it was because the day it was scanning for was not todays the date (or rather the current day that the program is being executed).
Is there a routine where FoxPro can seek through the calendar, see what day of the week it is and marry it up to the table?
I appreciate your comments and help
Thanks
A conclusion is simply a place where you got tired of thinking.