I just ran your code and didn't get any errors. Maybe problem is somewhere in a code between DEFINE WINDOW and @ ... CLEAR .
>I want to run a FPW26 program on VFP7. I define and open a screen with this command:
>
> DEFINE WINDOW A FROM 0,0 TO 43,100 ;
> FONT 'FOXPRINT', 10 STYLE 'B'
> ACTIVATE WIND A
>
>Later in my program I clear the screen using "@ 1,70 CLEAR TO 3,79" which generates an error that the position is off screen. I think my PC is haunted.
>
>Has anyone else had this error? It works fine in 2.6
>
>TX
--sb--