Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


Hallo Hans_Werner,


[0] Test-Makros

Sub Calling
   Dim A,B,C as String
   A= "A" : B = "B" : C = "C"
   Called(A,B,C)
End Sub

Sub Called(Optional A as String,Optional B as String,Optional C as String)
   MsgBox("A: " & IsMissing(A) & Chr(13) &_
          "B: " & IsMissing(B) & Chr(13) &_
          "C: " & IsMissing(C) & Chr(13))
End Sub

Der Fehler liegt darin, dass Du den optionalen Variablen "as String"
zuweist. Auch ein leerer Inhalt wird wohl als String interpretiert und
so weitergegeben.

Sub Called(Optional A, Optional B, Optional C)

bringt Dir das gewünschte Ergebnis.

Gruß

Robert
-- 
Homepage: http://robert.familiegrosskopf.de
LibreOffice Community: http://robert.familiegrosskopf.de/map_3


-- 
Liste abmelden mit E-Mail an: users+unsubscribe@de.libreoffice.org
Probleme? https://de.libreoffice.org/hilfe-kontakt/mailing-listen/abmeldung-liste/
Tipps zu Listenmails: https://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: https://listarchives.libreoffice.org/de/users/
Alle E-Mails an diese Liste werden unlöschbar öffentlich archiviert

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.