Bonjour adrien

Est-ce possible avec une variable booléenne, ou faudrait-il passer par un Variant
et utiliser isEmpty() ou isNull() ?

je pense que isEmpty est une bonne approche
ci joint un exemple

HTH

Laurent

global valeur2

sub test
        if isEmpty(valeur2) then
                print "valeur2 n'a jamais ete utilisée"
                valeur2 = "1234"
        else
                print "valeur2 a deja ete utilisée"
        endif
end sub


--
Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org
Indesko >> http://www.indesko.com
Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org
Livre "Programmation OpenOffice.org", Eyrolles 2004

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Répondre à