×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

VDb 5.5/5.7 QUERY WINDOW POSITIONS

VDb 5.5/5.7 QUERY WINDOW POSITIONS

VDb 5.5/5.7 QUERY WINDOW POSITIONS

(OP)
I need some help as I have spent a lot of days trying to work out my problem with the error
“Window out of range: xxx” .
I am using windows XP sp3 and my screen resolution is 1024 x 768, refresh rate 60Hz.
Using my .PRG files my programs of which there are three run just as I intended all the windows
display with the expected content.
I am submitting sample code in the hope that someone can assist me with the problem.
Program 1 (first.prg)

close all
clear all
clear
set directory to c:\fx

define window firstwin from 5,15 to 38,79
activate window firstwin
? "this is the first window"
wait
deactivate window firstwin

do two
&&&&&

define window fifthwin from 2,10 to 45,110
activate window fifthwin
? "this is the fifth window"
wait
deactivate window fifthwin
release windows
mwin = window()
? " window message"
if empty(mwin)
? "all windows are closed"
else
? "the open window is "
?? mwin
endif
wait
close all
clear all
Program 2 (two.prg) called from first.prg

define window twowin from 2,2 to 45,110
activate window twowin
? "this is the second window"
wait
deactivate window twowin

define window thirdwin from 4,6 to 24,79
activate window thirdwin
? "this is the third window"
wait
deactivate window thirdwin
release window thirdwin
do three
&&&&
return


Program 3

define window fourwin from 10,11 to 23,100
activate window fourwin
? "this is the fourth window"
wait
deactivate window fourwin
return

from here I wrote the following command line

compile first.prg,two.prg,three.prg auto to test.rsp

then
build from test.rsp to tryit.exe

in running tryit.exe the windows 1,2 & 5 were out of range but windows 3& 4
showed up ok. Running the .prg files all windows showed up.

I am using the ancient 16bit Visual Dbase 5.5/5.7 and find it is generally fantastic
but I can't get my head around this one. I also can't get my head around OOP either.
I'm 72. Is it a problem with the BDE or some setting. Please help if you are able
John

RE: VDb 5.5/5.7 QUERY WINDOW POSITIONS

How many rows does your screen have or is set to use? In the old DOS text-based world the rows were originally a 24x80 matrix, from 0 to 23 and columns from 0 to 79. (The 25th row was typically reserved for system messages and statuses.) So you could declare windows of virtually any size combination from 0,0 to 23,79.

Over the years some DOS-based displays could handle additional fonts such as VGA43 or VGA50 screens with up to 43 or 50 rows. I don't recall how many columns was the maximum.

If this is Visual dBase I don't have any knowledge of those specs. For now, it might be good to start with values that don't exceed 24 rows and 80 columns, remembering that both row and column positioning logic works from zero, not one. Once you confirm those work as expected then you can try larger windows.

This thread and its additional links indicate the various screen displays that may be possible.
thread290-1641043: more display resolution -db3plus-windows7

SET DISPLAY TO EGA50 && if doesn't work then try VGA50 instead -similar for EGA43 or VGA43

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close