Connection Templates

<< Click to Display Table of Contents >>

Navigation:  The Vo2Ado Server Editor > Templates >

Connection Templates

Previous pageReturn to chapter overviewNext page

The Server editor allows for a maximum of 9 different templates for connection code generation.

 

[ConnectionTemplates]

1=Connection Subclass

2=OpenConnection Method (No Class Def)

3=

4=

5=

6=

7=

8=

9=

 

You can add your own template by filling one of the slots in the ConnectionTemplates section, and by adding the code to the sections [CClass<n>] and [CInit<n>], for example if you add template 3 you can add the sections [CClass3] and [CInit3]

 

The following markers are allowed for connection templates:

%classname%        The classname

%connectionstring%        The connectionstring (without opening/closing string delimiters)

%default%        TRUE or FALSE. Depends on the 'Make default' connection option

%userid%        The UserID

%password%        The Password

%cursorlocation%        The cursorlocation (adUseClient or AdUseServer)

%timeout%        The Connectiontimeout value (or NIL when no timeout is specified)