PreviousNext
Help > Développement > Fonctions W-Langage pour AS/400 > Fonctions Gestion Profil > ASUserList
ASUserList

 Récupère la liste des profil AS400

 

Syntaxe

 

bResult = ASUserList(ASUsrPrfCollection,Connexion)

 

bResult

Booléen - Vrai si la commande a réussi, Faux en cas d'erreur.

AsUsrPrfCollection

Une variable de type ASUsrPrfCollection qui contiendra le résultat de la commande.

C’est une collection d’objets ASUsrPrf,

Connexion

Chaîne – nom qualifié de la connexion

 

 

Exemple

 

profilListe est une ASUsrPrfCollection

monProfil est un ASUsrPrf

nb est un entier

 

HOuvreConnexion(AS400)

ASUserList(profilListe, AS400)

 

nb = profilListe.CollectionASUsrPrf..Occurrence

POUR indice= 1 A nb

   monProfil = profilListe.CollectionASUsrPrf[indice]

   TableauAjoute(gtabObjet, monProfil)

FIN

TableAffiche(TABLE_GtabObjet)