Category : Paradox DBMS
Archive   : TECH91.ZIP
Filename : TI699.ASC

 
Output of file : TI699.ASC contained in archive : TECH91.ZIP







PRODUCT : Paradox NUMBER : 699
VERSION : 2.0 & up
OS : DOS
DATE : September 11, 1991 PAGE : 1/2

TITLE : Implementing Fieldview in a PAL Application




In a WAIT TABLE or WAIT RECORD statement that lists and
in its UNTIL clause, additional programming must be done
to process Fieldview correctly. While in WAIT TABLE or WAIT
RECORD the user can enter Fieldview by pressing or
. Without additional programming, the following problem
will arise. When the user presses or while in
Fieldview, the Paradox code to handle and is
invoked causing Paradox to insert or delete a record rather
inserting or deleting a character.

In Fieldview mode, and should insert and delete
characters, and in Edit and Coedit mode, these keys should insert
and delete records.

The correct way to implement and in Fieldview
is to add Fieldview to the Until clause of the WAIT statement.
The following PAL program demonstrates this method.

===============================================================
COEDIT "Customer" ; Coedit the Customer Table

WHILE TRUE

WAIT RECORD
UNTIL "DO_IT!","FIELDVIEW","DEL","INS","PGUP","PGDN"
; Note Fieldview in above line
SWITCH
CASE RETVAL = "DO_IT!" : ; pressed
DO_IT!
QUIT

CASE RETVAL = "FIELDVIEW" :
FIELDVIEW
; Fieldview handling code
; Invoke Fieldview, wait for Enter to be
pressed

WAIT FIELD
PROMPT "Press Enter to end fieldview",""
UNTIL "ENTER"
; User may insert and delete characters while
in














PRODUCT : Paradox NUMBER : 699
VERSION : 2.0 & up
OS : DOS
DATE : September 11, 1991 PAGE : 2/2

TITLE : Implementing Fieldview in a PAL Application




; Fieldview

OTHERWISE : ; Process other keys
KEYPRESS RETVAL
ENDSWITCH

ENDWHILE

===============================================================

This program places the "Customer" table into Coedit mode, then
uses WAIT RECORD to allow the user to edit the table until
, , , , , is
pressed. When the user enters Fieldview mode, by pressing F5> or , the program uses a WAIT FIELD statement to allow
the user to make changes to the field. While in Fieldview the
user can press and to insert and delete
characters. When the user presses , the Fieldview
terminates and returns to the WAIT TABLE statement allowing the
user to continue Coediting the table. When a user presses
, and in CoEdit mode, these keys insert and
delete records.





























  3 Responses to “Category : Paradox DBMS
Archive   : TECH91.ZIP
Filename : TI699.ASC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/