Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

WODBC:Init() Method
Construct an ODBC object
------------------------------------------------------------------------------

Syntax
WODBC{ <oParent>, [ <cSelect> ] , [ <cDSN> ] , [ <cUserID> ] ,
       [ <cPassword> ] , [ <lChoose> ] }   -->   SELF

Arguments
<oParent> specifies the parent (owner) window of the object.

<cSelect> optionally specifies a SELECT statement to be
executed once the connection to the server has been established.

<cDSN> optionally specifies the server (DSN = Data Source Name).

<cUserID> optionally specifies the user ID for the server.

<cPassword> optionally specifies the user's password.

<lChoose> can be used to specify whether to prompt the user
for the data source, user ID and password.

Returns
SELF.

Description
This method initialises an ODBC (Open Database Connectivity)
object.  This includes connecting to a server, and optionally
issuing a SELECT SQL statement.

Example
// From SOURCE\OO\ODBCWBRO.PRG:
oTable := WODBC{self, "select * from course", "SAMPLE"},    ;
oTable:GoTop(),                                            ;
::CreateChild(Browser{::Client, oTable}),                   ;


See Also: WTable WDBTable

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson