User Guide
Programming i!-Database Plus
20
i!-Database Plus and DBWizard
NetlinxDBInclude.axi
Constants
All constants can be overridden by defining your own values in your program.
Variables
The following table is a list of variables for NetlinxDBInclude.axi.
NetlinxDBInclude.axi Constants
Parameter Value Description Notes
IP_TCP = 1 (* TCP/IP COMMUNICATIONS *) Passed
IP_CLIENT_OPEN and
IP_CLIENT_CLOSED.
nDB_MAX_TIMEOUT = 60 (* MAXIMUM TO WAIT FOR XML
RESPONSE *)
Time to wait for ASP to
process and return XML.
nDB_MAX_BUFF_SIZE = 10000 (* WEB SERVER BUFFER SIZE *) Buffer size for XML.
nDB_MAX_URL_SIZE = 1000 (* WEB SERVER URL SIZE *) URL size and therefore,
SQL statements.
nDB_MAX_HDR_SIZE = nDB_MAX_URL_SIZE
+200
(* WEB SERVER HTTP GET
HEADER SIZE *)
GET header size. 200
bytes above the max URL
size.
nDB_MAX_PARAM_SIZE = 300 (* XML PARAMETER SIZE *) Maximum size of XML
values and ASP cookie.
nDB_MAX_QUE_SIZE = 10 (* WEB SERVER QUE SIZE *) Number of commands to
allow in queue.
nDB_LISTBOX_PAGE_OVERLAP = 0 (* LIST BOX PAGE OVERLAP *) Control whether a new list
box page contains 1 of
entry for reference
NetlinxDBInclude.axi Variables
Parameter Value Description Notes
IP_ADDRESS_STRUCT sMY_IPAddress (* MY IP ADDRESS *)
Holds the IP address of the Master.
CHAR bDB_DEBUG (* SET TO 1 TO DEBUG *)
Set to 1 to get debug info from the
NetlinxDBInclude.axi.
The include file will need to be included before you variable section in order to define
variables to _sDB_LISTBOX type. However, if you wait until the variable section to
define debug, it will already be defined. The best way to solve this problem is to
include NetlinxDBInclude.axi just before the DEFINE_VARIABLE section and define
bDB_DEBUG as a constant and set it to 1.