ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / LDAP functions
  • Using the LDAPListChildren function
LDAPListChildren (Example)
Using the LDAPListChildren function
WINDEVWEBDEV - Server codeReports and QueriesWindowsUser code (UMC) The following example shows how to use LDAPListChildren recursively.
sChildName is string
i is int = 1
sListChildren is string
sChildName = ExtractString(sList, i, CR)
WHILE sChildName <> EOT
// Add the child into the result
gsListChildren += sChildName + CR
// Perform the same operation with the children of the child element
sListChildren = LDAPListChildren("MySession", sChildName)
IF sListChildren <> "" THEN
gFindSubChildren(sListChildren)
END
i += 1
sChildName = ExtractString(sList, i, CR)
END
//============== recursive use of LDAPListChildren ==============
PROCÉDURE gFindSubChildren(sList)
sChildName is string
i is int = 1
sListChildren is string
sChildName = ExtractString(sList, i, CR)
WHILE sChildName <> EOT
// Add the child into the result
gsListAttributes += sChildName + CR
// Perform the same operation with the children of the child element
sListChildren = LDAPListChildren("MySession", sChildName)
IF sListChildren <> "" THEN
gFindSubChildren(sListChildren)
END
i += 1
sChildName = ExtractString(sList, i, CR)
END
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help