Item Method
The Item method returns one item of the collection.
Syntax
[variant=] Values.Item(index)
|
Parameters
index |
Long value that contains the item number to return. |
Return Value
Returns a String or Long value that contains the specified single value of the queried row.
Remarks
Collection-index values are 1-based.
Examples
The following example queries for a single row and displays its single values.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
dbquery = SiteCafe.Server.CreateDatabaseQuery();
val = dbquery.GetValueArray('SELECT * FROM users WHERE name = "user2"');
for (var i = 1; i <= val.Count; i++) alert(val.Item(i));
</SCRIPT>
|
Applies to
SiteKiosk v6.2 (and later versions).
Back to top