home *** CD-ROM | disk | FTP | other *** search
- /*
- *
- * Script name: GetRecord.rexx
- * Author: Franz Hemmer
- * Purpose: Demonstrate how to get a record from the current table in InterBase.
- * Related Program: InterBase Pro
- * Written: 23.03.93
- *
- */
-
- Options Results
- parse arg number
-
- /*-----------------------------------*/
- /* Check that parameters was passed: */
- /*-----------------------------------*/
- IF number = "" THEN DO
- SAY 'Usage: GetRecord <number>'
- EXIT 5
- END
-
- /*----------------------------------------------*/
- /* Address InterBase port, and execute command. */
- /*----------------------------------------------*/
- ADDRESS INTERBASE1 GET_RECORD number
- IF rc > 0 THEN
- DO
- SAY INTERBASE.LASTERROR
- END
- ELSE
- DO
- SAY result
- END
- ENDIF
-