Präfixe für Datentypen
Variablen und Konstanten in der VBA-Programmierung sollten nicht nur überhaupt deklariert sein, sondern ihren Datentyp im Namen als Präfix enthalten.
Tabelle C.3 Präfixe für Datentypen
VBA-Datentyp | Präfix |
---|---|
Boolean | boo |
Byte | byt |
Integer | int |
Long | lng |
Currency | cur |
Date | dat |
Single | sng |
Double | dbl |
Decimal | dec |
String | str |
Variant | var |
Get Microsoft Access 2010 - Das Handbuch now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.