ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Managing external languages / Object functions
  • List,Search
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
List,Search (External language)
In french: Liste,Cherche
Finds a value in a list. The search performed is an exact-match search.
Example
// In C
CALLWD('List,Search,ProdList,000002");
if WDInt==-1 CALLWD("ERROR,Element not found");
// In Pascal
CALLWD('List,Search,ProdList,000002');
if WDInt=-1 then CALLWD('ERROR,Element not found');
// In VB
call CALLWD("List,Search,ProdList,000002")
if WDInt=-1 then CALLWD('ERROR,Element not found")
end if
Syntax
List,Search(<List name> , <Sought String>)
<List name>: Character string
Name of the List Box control to modify.
<Sought String>: Character string
Value sought in the list. This value is sought in the entire list.
Remarks

List,Search

  • the subscript of the list element corresponding to the search,
  • -1 if the sought string is not found..
Minimum version required
  • Version 14
Comments
Click [Add] to post a comment

Last update: 04/06/2023

Send a report | Local help