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


Hallo *,

zufällig bin ich - im Zusammenhang mit einer anderen Angelegenheit - auf folgenden BUG (?) gestoßen:

[1] Deklariert man eine Variable via "Dim DoubleVar1#" und will man den Inhalt dieser Variable in eine Datei ausgeben, erhält man die Fehlermeldung "Fehler: Unzulässiger Wert oder Datentyp.Datentypen unverträglich.".

[2] Deklariert man eine Variable via "Dim DoubleVar2 As Double" funktioniert die Ausgabe in eine Datei fehlerfrei

[3] Das "Print #KanalNr,DoubleVar1#" scheint mit 2 mal # Probleme zu haben ...

Kann das jemand bestätigen ?

Gruß
Hans-Werner :-))


Sub Print_DoubleVar_To_File

Dim Datei As String
Dim KanalNr As Integer

Dim DoubleVar1#
Dim DoubleVar2 As Double

DoubleVar1# = 0.123456789
DoubleVar2 = DoubleVar1#

Print DoubleVar1# ' OKAY
Print DoubleVar2 ' OKAY

Datei = "E:\TMP\HWH.txt" ' Gegebenenfalls anpassen !
KanalNr = Freefile

Open Datei For Output As #KanalNr

Print #KanalNr,DoubleVar2 ' OKAY
' Print #KanalNr,DoubleVar1# ' ERROR "Unzulässiger Wert oder Datentyp.Datentypen unverträglich."

Close #KanalNr

End Sub


--
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/
Datenschutzerklärung: 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.