This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
Execute an SQL statement that generate a recordset and return value of a specific field.
Syntax
s = <ADODB_Connection>.LookUp (sSQL, sFieldName)
Returns
String.
Parameters
Name |
Type |
Optional |
Meaning |
sSQL |
String |
No |
A valid SQL statement that return a recordset |
sFieldName |
String |
No |
Name of a field generated by sSQL statement parameter |
Remarks
This function is not a standard ADODB function but a personalized thinBasic function.
It was designed because very often, when handling data from a DB, it is necessary to lookup just one value giving a SQL statement.
Instead to instantiate an ADODB_Recordset to just do one lookup, use this function.
Restrictions
See also
Examples