GetValue Method
The GetValue method queries for a single value.
Syntax
[variant=] DatabaseQuery.GetValue(query)
|
Parameters
query |
String that specifies the query. |
Return Value
Returns a String or Long value containing the queried value.
Remarks
The query will be closed automatically.
Examples
The following example queries for a single value and displays it.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
dbquery = SiteCafe.Server.CreateDatabaseQuery();
val = dbquery.GetValue('SELECT email FROM users WHERE name = "user2"');
alert(val);
</SCRIPT>
|
Applies to
SiteKiosk v6.2 (and later versions).
Back to top