ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / List Box functions
  • Transferring values from a List Box control to another
ListDelete (Example)
Transferring values from a List Box control to another
Reports and Queries
// Variables
nbSelectedRows is int
nbElements is int
nbElements = ListeSelectCount(LIST_Keywords)
 
FOR i = nbElements TO 1 STEP -1
nbSelectedRows = ListSelect(LIST_Keywords, i)
IF nbSelectedRows <> -1 THEN
IF InTestMode() = True THEN Trace("Row #" +  ...
nbSelectedRows + " is selected.")
ListAdd(LIST_SelectedKeywords, ...
LIST_Keywords[nbSelectedRows]..DisplayedValue)
ListSelectMinus(LIST_Keywords, nbSelectedRows)
ListDelete(LIST_Keywords, nbSelectedRows)
END
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help