home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
main.4gl
< prev
next >
Wrap
Text File
|
1996-07-02
|
1KB
|
38 lines
-----------------------------------------------------------------------------
--
-- Copyright (c) 1995 by Westmount Technology B.V., Delft, The Netherlands.
--
-- This software is furnished under a license and may be used only in
-- accordance with the terms of such license and with the inclusion of
-- the above copyright notice. This software or any other copies thereof
-- may not be provided or otherwise made available to any other person.
-- No title to and ownership of the software is hereby transferred.
--
-- The information in this software is subject to change without notice
-- and should not be construed as a commitment by Westmount Technology B.V.
--
-----------------------------------------------------------------------------
--
-- File : @(#)main.4gl 1.2
-- Author :
-- Original date : 17-01-1995
-- Description : Example of MAIN establishing a connection
--
-----------------------------------------------------------------------------
INCLUDE "DBObject.4gh"
MAIN
IF DBObject::connectDB("dbname") < 0 THEN
DISPLAY "Database connection failed"
RETURN
END IF
-- Application code here
-- For instance: create and open a Window
-- Note: after RETURN is executed, the program continues to run, waiting
-- for user actions to generate events that invoke event handlers
RETURN
END MAIN