home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
utility
/
pbaseiv.zip
/
P4DBS000.TIP
< prev
next >
Wrap
Text File
|
1991-12-16
|
2KB
|
46 lines
By using ObjectVision's multiple file linking and decision
trees, I'm able to create great-looking applications in no
time. However, the program's default navigation buttons
aren't sufficient for many applications.
Here's a solution I've found useful when working with
ObjectVision applications linked to Paradox and dBASE files.
When you link to a file, you get five default buttons:
Previous, Next, Clear, Delete, and Enter. When you open a
form, ObjectVision doesn't know where in the database it is,
and pressing Next or Previous will only confuse it.
The best way to solve this problem is to add two more
buttons, Top and Bottom, to position you quickly at the
beginning or end of the data base. First, use the Objects
Field command to create two fields called Top and Bottom. I
recommend positioning them near the default buttons and
making them the same size and shape. Then, turn these new
fields into buttons by selecting Properties Field type
Button.
Next, attach decision trees to the buttons: Double-click on
one of the new buttons to bring up an empty decision tree.
Select Object Conclusion. For the Top button, enter the
conclusion @TOP("linkname"); use @BOTTOM("linkname") for the
Bottom button. For both of these, linkname is the name you
created earlier for the link using the Tools Link Create
command. From then on, these buttons will take you to the
first and last records of the data base.
Richard Reiter
Aptos, California
Editor's note: While this technique will let you get to the
top or bottom of the database, you may not find what you're
looking for there. Remember, relational data bases don't
necessarily keep their records in any predefined sequence;
thus, the first and last records in the data base may not be
the first or last in alphabetical order.
Title: Getting to the Bottom of ObjectVision
Category: DBS
Issue date: Oct 1991
Editor: Brett Glass
Supplementary files: NONE