I am running this code on 8 work stations. It runs ok on 5 of them but the other 3 get a "'field' phrase cannot be found" error message at the ****** point indicated below.
The code is in a form activate event.
2 of the machines are on 98 the other is on XP
---------------------------------------------------------
LOCAL lcwinnt
THIS.defaultold = SYS(5) + SYS(2003) && current directory and drive
*/ to make sure this works on both 95/98/2000/NT/XP
SET SAFETY OFF
DO CASE
CASE OS() == "Windows NT 5.00"
lcwinnt = "winnt"
OTHERWISE
lcwinnt = "windows"
ENDCASE
DO CASE
CASE lcwinnt = "winnt"
SELECT DISTINCT allsdate FROM allsscr INTO ;
TABLE c:\winnt\temp\allsdate ORDER BY allsdate
SELECT DISTINCT program,action FROM allsscr INTO ;
TABLE c:\winnt\temp\allscamp ORDER BY program
CASE lcwinnt = "windows"
SELECT DISTINCT allsdate AS allsdate2 FROM allsscr INTO ;
TABLE c:\windows\temp\allsdate ORDER BY allsdate
SELECT DISTINCT program,action FROM allsscr INTO ;
TABLE c:\windows\temp\allscamp ORDER BY program
ENDCASE
SELECT allsdate
******** error message occurs here ***********
THISFORM.cbodate.SETFOCUS
-----------------------------------------------------------
The code is in a form activate event.
2 of the machines are on 98 the other is on XP
---------------------------------------------------------
LOCAL lcwinnt
THIS.defaultold = SYS(5) + SYS(2003) && current directory and drive
*/ to make sure this works on both 95/98/2000/NT/XP
SET SAFETY OFF
DO CASE
CASE OS() == "Windows NT 5.00"
lcwinnt = "winnt"
OTHERWISE
lcwinnt = "windows"
ENDCASE
DO CASE
CASE lcwinnt = "winnt"
SELECT DISTINCT allsdate FROM allsscr INTO ;
TABLE c:\winnt\temp\allsdate ORDER BY allsdate
SELECT DISTINCT program,action FROM allsscr INTO ;
TABLE c:\winnt\temp\allscamp ORDER BY program
CASE lcwinnt = "windows"
SELECT DISTINCT allsdate AS allsdate2 FROM allsscr INTO ;
TABLE c:\windows\temp\allsdate ORDER BY allsdate
SELECT DISTINCT program,action FROM allsscr INTO ;
TABLE c:\windows\temp\allscamp ORDER BY program
ENDCASE
SELECT allsdate
******** error message occurs here ***********
THISFORM.cbodate.SETFOCUS
-----------------------------------------------------------