3 messages in org.openoffice.fr.prog[prog] Basic : For Each (sur version ...
FromSent OnAttachments
Bernard MarcellySep 21, 2005 3:09 am 
Laurent GodardSep 21, 2005 3:21 am 
Serge LE LOUARNESep 21, 2005 7:25 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[prog] Basic : For Each (sur version 1.9.xxx)Actions...
From:Bernard Marcelly (marc@club-internet.fr)
Date:Sep 21, 2005 3:09:15 am
List:org.openoffice.fr.prog

Bonjour, Je viens de découvrir le rapport IZ 33807 qui indique l'introduction de la tournure For Each dans Basic (pour faire comme VBA). Contrairement à la date prévisionnelle (OOo Later) ceci est déjà disponible, au moins dans les cas simples, sur 1.9 depuis quelques mois. Exemples :

Dim tata, toto tata = Array("un", pi, -237, "fini") for each toto in tata MsgBox(toto) next

dim familles as object, nomfam as variant familles = ThisComponent.StyleFamilies for each nomfam in familles.ElementNames MsgBox(nomfam) next

Comme d'habitude le Help n'est pas mis à jour, et j'ai donc intuité l'utilisation.

Bernard