home *** CD-ROM | disk | FTP | other *** search
- ********************************
- * EXAMPL01.PRG *
- * Written By Gregory A. Martin *
- ********************************
-
- * This example illustrates the fundementals of opening up databases using
- * the G_USE() function.
-
- DO Startup
-
- * Open the two needed databases
- IF .not. G_Use("ARec", "ARec1, ARec2", "Receive", .f., .f.)
- * If unable to open then return
- RETURN
- ENDIF
- IF .not. G_Use("APay", "APay1, APay2", "Payable", .f., .f.)
- * If unable to open then close first database and return
- SELECT Receive
- USE
- RETURN
- ENDIF
-
- * ... Get some user input ...
-
- SELECT Receive
- * ... Do Some Processing ...
-
- SELECT Payable
- * ... Do Some Processing ...
-
- * Close databases and return
- SELECT Receive
- USE
- SELECT Payable
- USE
- RETURN
-
-