AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones LDAP
  • Using the LDAPListChildren function
LDAPListChildren (Example)
Using the LDAPListChildren function
WINDEVWEBDEV - Código ServidorReportes y ConsultasWindowsCódigo de Usuario (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 ==============
PROCEDURE 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
Versión mínima requerida
  • Versión 10
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local