stanmurphy
Technical User
- Oct 14, 2000
- 89
Hello All,
Looking at the code below, can anyone explain to me why, when I suspend execution at either of the "DO FORM" statements, I am not at the file named APPT (according to ALIAS())? I am absoulutely stymied by this.
APPT has buffering set to 2 in my MAIN program using:
Use Appt in 0
CursorSetProp("Buffering",2,'APPT')
Any insight would be most appreciated!!
Thanks,
Stan
*********************************************
SELECT Appt && the Appointments File
SET ORDER TO byAll && CounName, ApptDateTime
GO top
&& Counsellor Name, Month, Day, Year and Time
STORE (schedule.text&pGridNumberPlusOne..value) TO mCounsellorName
STORE ALLTRIM(mCounsellorName) TO mName
STORE &mCurrentGridName..curApptDate TO mSeekDAte
STORE ALLTRIM(TTOC(mSeekDate,2)) TO mTime
STORE mName+mMONTH+"/"+mDAY+"/"+mYEAR+" "+mTime TO mSEEK
SEEK mSEEK
IF !FOUND() && Appt doesn't exist, so we'll add it
SELECT appthours
GO recno('&mCurrentGridName.')
STORE appthours.hourtime TO mPeriodTime
SELECT APPT
APPEND BLANK && Add a new blank record
replace NEXT 1 appt.apptdatetime WITH;
DATETIME(YEAR(dtCurrentDate),MONTH(dtCurrentDate),;
DAY(dtCurrentDate),VAL(SUBSTR(mPeriodTime,1,2)),VAL(SUBSTR(mPeriodTime,4,2)),00)
replace NEXT 1 appt.counname WITH schedule.text&pGridNumberPlusOne..value
DO FORM ApptDisplay
ELSE && We've found the record
DO FORM ApptDisplay
ENDIF
*************************************************
Looking at the code below, can anyone explain to me why, when I suspend execution at either of the "DO FORM" statements, I am not at the file named APPT (according to ALIAS())? I am absoulutely stymied by this.
APPT has buffering set to 2 in my MAIN program using:
Use Appt in 0
CursorSetProp("Buffering",2,'APPT')
Any insight would be most appreciated!!
Thanks,
Stan
*********************************************
SELECT Appt && the Appointments File
SET ORDER TO byAll && CounName, ApptDateTime
GO top
&& Counsellor Name, Month, Day, Year and Time
STORE (schedule.text&pGridNumberPlusOne..value) TO mCounsellorName
STORE ALLTRIM(mCounsellorName) TO mName
STORE &mCurrentGridName..curApptDate TO mSeekDAte
STORE ALLTRIM(TTOC(mSeekDate,2)) TO mTime
STORE mName+mMONTH+"/"+mDAY+"/"+mYEAR+" "+mTime TO mSEEK
SEEK mSEEK
IF !FOUND() && Appt doesn't exist, so we'll add it
SELECT appthours
GO recno('&mCurrentGridName.')
STORE appthours.hourtime TO mPeriodTime
SELECT APPT
APPEND BLANK && Add a new blank record
replace NEXT 1 appt.apptdatetime WITH;
DATETIME(YEAR(dtCurrentDate),MONTH(dtCurrentDate),;
DAY(dtCurrentDate),VAL(SUBSTR(mPeriodTime,1,2)),VAL(SUBSTR(mPeriodTime,4,2)),00)
replace NEXT 1 appt.counname WITH schedule.text&pGridNumberPlusOne..value
DO FORM ApptDisplay
ELSE && We've found the record
DO FORM ApptDisplay
ENDIF
*************************************************