User Guide

Programming i!-Database Plus
27
i!-Database Plus and DBWizard
NetlinxDBInclude.asp Functions (Cont.)
DB_SCALE_SLIDER()
Calculates the slider
position, 0 - 255, for a
given sDB_LISTBOX
structure.
The DB_SCALE_SLIDER copies the slider value to the sTempListBox structure.
Syntax:
DB_SCALE_SLIDER(_sDB_LISTBOX sTempListBox)
Variables:
sTempListBox = Represents the list box structure. (Required.)
Return Values:
DB_SCALE_SLIDER returns a number representing the position in the list, with a
value of 0 - 255. Value is calculated for touch panels from the front of the list return
255 (top of a slider).
DB_STRING_
REPLACE()
Converts a string to a URL
compatible string. All
characters illegal in URL's
are replaced with a "%"
hex code equivalent.
The DB_STRING_REPLACE function is used to convert SQL queries into CGI
strings.
Syntax:
DB_MAKE_URL_STRING(CHAR strSTR[])
Variable:
strSTR = Represents the string to have search/replace operation applied to.
(Required.)
strSEARCH = Represents the search target. (Required.)
strREPLACE = Represents the replace target. (Required.)
Return Values:
DB_GET_XML_VALUE returns the string strSTR after the search/replace
operation has been applied.
DB_TRUE_FALSE()
Converts the CHAR
values of 1 and 0 into the
strings "TRUE" and
"FALSE", respectively.
The DB_TRUE_FALSE function is used to convert Boolean parameters from
NetLinx into strings for XML.
Syntax:
DB_TRUE_FALSE (CHAR bFLAG)
Variable:
BFLAG = Represents the CHAR to be converted. (Required.)
Return Values:
•'TRUE' if the flag was non-zero.
•'FALSE' if the flag was zero.