Bonjour,
Linux Mint 20.3
Version: 7.3.5.2 / LibreOffice Community
Build ID: 184fe81b8c8c30d8b5082578aee2fed2ea847c01
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
je ne reproduis pas. Je doute d'une différence entre les versions
7.3.5.x et 7.3.6.x. Eventuellement je testerai.
Le 07/10/2022 à 11:07, linux a écrit :
ByVal Var1FeuilleCLD, ByVal Var2,Optional Var3 as long, Optional Var4 as
long, Optional Var5 as String
voici le code au complet que je teste :
8< -----------------------------------------------
Sub Main()
MsgBox Macro1("Feuille", "Var2", 3, 4, "MaVar") '-> "MaVar"
MsgBox Macro1("Feuille", "Var2", 3, 4) '-> "Var5 defaut"
End Sub
Function Macro1(ByVal Var1FeuilleCLD, ByVal Var2, Optional Var3 as long,
Optional Var4 as long, Optional Var5 as String) As String
If IsMissing(Var3) Then Var3 = 30
If IsMissing(Var4) Then Var4 = 40
If IsMissing(Var5) Then Var5 = "Var5 defaut"
Macro1 = Var5
End Function 'Macro1
----------------------------------------------- >8
Les résultats sont bien ceux indiqués en commentaire dans la sub Main().
Bonne journée,
--
Jean-Francois Nifenecker, Bordeaux
--
Envoyez un mail à users+unsubscribe@fr.libreoffice.org pour vous désinscrire
Les archives de la liste sont disponibles à https://listarchives.libreoffice.org/fr/users/
Privacy Policy: https://www.documentfoundation.org/privacy
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.