Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
Allerdings bin ich nicht absolut sicher, ob das Array seine Inhalte behält, wenn Du das neu dimensionierst.
ReDim Preserve Array (1 to 100)
'Funktionsaufruf
RefCasten = Casten(1, CVar(RefDatArray))
'Die Funktion selbst
Public Function Casten(Start As Long, DatArray As Variant) As Double()
Dim Wert As String
Dim i As Long
Dim Out() As Double
ReDim Out(UBound(DatArray) + i + 1)
For i = Start To UBound(DatArray) - Start + 2
Wert = Replace(DatArray(i - Start), ".", ",")
Wert = Trim(Wert)
Out(i + Start) = CDbl(Wert)
Next i
Casten = Out
End Function
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)