Syntax
| SQL.SearchWithQueryArray(Query[, AltCaption][, ReturnColumn] _
[, ExtraItem][, arrSelected])
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Performs a search using a SELECT query, displaying the result in a standard TRADIUM multiple-choice dialog box and returning the selected items in an array. Here the entire row or a specific column can be specified. Optionally, multiple items can be added at the bottom of the result of the SELECT query.
The array must first be declared with a ReDim statement and be of type String. The function returns the number of selected items in the first element (0). See also the example below.
| ||||||||||||
See Also
| other SQL.Searchxxxxxxxx functions, SearchWithQuery.
| ||||||||||||
Example
| Sub Main() ReDim aResult(0) As String Dim sQuery As String, x As Integer sQuery = "SELECT Admin, Code, Omschrijving FROM Prm_BTW" aResult = SQL.SearchWithQueryArray(sQuery, "VAT overview:", 1, _ "1" & vbTab & " | ||||||||||||