VBA: Len typenabhängig?
30.10.2006 15:34:08
{Boris}
Option Explicit
Sub test()
Dim x As Integer, y As Long
x = 28: y = 28
MsgBox Len(x), , "Integer"
MsgBox Len(y), , "Long"
End Sub
Len(x) ergibt korrekt 2, Len(y) ergibt 4?! Wie wird denn da die Long-Zahl gespeichert, dass da noch 2 Zeichen dazukommen?
Grüße Boris