PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Transferring values from a List Box control to another
ListSelect (Example)
Transferring values from a List Box control to another
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileUser code (UMC)
// 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