zahj


When i compiled my program as an application, i didn't experience errors while running it. but when i compiled it as an executable program, i get an error that says "ROW OR COLUMN POSITION IS OFF THE SCREEN"

I tried compiling it again but i still get the same result. Application is ok but executable is not ok...

Help me out please...




Re: Off the screen

CetinBasoz


Wow, it has been maybe 15+ years since I last saw that errorSmile

It's not a matter of developement or executable. Your @ say/get commands should use row/column positions that are not off the available area. As I remember you could query the available rows/columns using srows(),scols(), wrows(),wcols().

If you drop using @ commands you wouldn't see that error at all.






Re: Off the screen

dni

You may try to use ROW() and COL() functions to identify the wrong position on the screen.





Re: Off the screen

zahj

thank you guys for your insights...

the problem is the code works if the vfp is opened first... but if i launch the compiled program... it gives of the error...





Re: Off the screen

Tracy H

What version of Foxpro are you compiling in For older versions you can try opening the shortcut for the application, look at the properties dialog and select the Windows 95 or Windows 98 compatibility mode. Then make sure you check the Disable visual themes checkbox. It works for FPD26 apps sometimes.

If it is a VFP app, make sure you use a true-type font in development such as MS Sans Serif, Tahoma, or Arial. To troubleshoot, try in the main.prg setting _screen.WindowState property to maximize the main window and see if the error goes away.





Re: Off the screen

CetinBasoz

And I repeat it doesn't have relation to being IDE or runtime. Do not try to use @ commands with off the screen positions. In IDE apperantly your screen area is larger.



Re: Off the screen

zahj

I'm not using @ commands with off the screen positions... that's why i'm puzzled

i'm using VFP 9...





Re: Off the screen

AndyKr

Without knowing what is going on it is very hard to guess. As Cetin states, correctly, this error indicates that an @...SAY command is referencing a position that is not in the current screen area. The actual error definition is:

A row or column number specified in an @ command is larger than the number of rows or columns on the screen, window, or printer.

so unless you can give some more details I don't think anyone will be able to help much more. If you are not using "@" commands, you cannot get this error so maybe if you post the code that is giving trouble...






Re: Off the screen

dni

You may try:

SET DISPLAY TO VGA25