The following code is in a large DLL source and generates a compile
time error 10 - Undefined error. I don't understand. The same basic
code appears in the same SUB earlier and does not generate the error.
Help!
------------------
Bernard Ertl
time error 10 - Undefined error. I don't understand. The same basic
code appears in the same SUB earlier and does not generate the error.
Code:
'PBDLL 6.0 FOR J& = K& + 1 TO Result& CurDate.Q = CurDate.Q + %OneDay FileTimeToSystemTime CurDate.F, ST SELECT CASE PBuff.DW CASE 5 'The following line is flagged by the compiler with error 10.... IF ST.wDayOfWeek = 6 OR ST.wDayOfWeek = 0 THEN ITERATE LOOP CASE 6 IF ST.wDayOfWeek = 0 THEN ITERATE LOOP END SELECT GetDateFormat %LOCALE_SYSTEM_DEFAULT, %DATE_SHORTDATE, ST, BYVAL 0, szTemp, SIZEOF( szTemp) GetDateFormat %LOCALE_SYSTEM_DEFAULT, 0, ST, szTemp2, szPDM, SIZEOF( szPDM) szTemp = szPDM + " " + szTemp SSSetData hSpread&, 3, Dummy1&, szTemp INCR Dummy1& IF Dummy1& = SSGetMaxRows( hSpread&) THEN CALL SSSetMaxRows( hSpread&, Dummy1& + %DefaultCPMArraySize) NEXT
------------------
Bernard Ertl
Comment