vbNull = 1 und Nothing = 0

Microsoft Visual Basic .NET Express
Antworten
localhorst
Beiträge: 571
Registriert: 17.12.2012, 20:19

vbNull = 1 und Nothing = 0

Beitrag von localhorst »

Eine Falle lauert bei der Zuweisung von "vbNull" oder "Nothing" zu einer Zahl-Variable (Integer, Double, Float, Decimal usw.) denn vbNull wird intern als "1" und Nothing als "0" geführt.
Antworten