Gibt es einen Leistungsvorteil, Variablen zu Beginn einer Funktion zu haben, bevor sie deklariert werden, bevor sie verwendet werden?Leistungsvorteil von Variablendeklarationen in VBA?
ich VBA bin mit in MS Access 2003
Beispiel,
Function f(y As Long) As Long
Dim x As Long
If y <> 0 Then
x = 1000000
End If
End Function
Verse
Function f(y As Long) As Long
If y <> 0 Then
Dim x As Long
x = 1000000
End If
End Function
Ja, ich verwende Option Explicit. Danke für die Hilfe. –