GetValueArray Method
The GetValueArray method queries for a single row.
Syntax
[obj=] DatabaseQuery.GetValueArray(query)
|
Parameters
query |
String that specifies the query. |
Return Value
Returns a Values collection containing the single values of the queried row.
Remarks
The query will be closed automatically.
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