Visual Basic Prefixes


Variable Prefixes

Data TypePrefix     Example
Boolean bln blnFound
Byte byt bytAge
Character       chr chrCharValue
Date dat datStartDate
Decimal dec decMilesFromEarth
Double dbl dblInvoiceAmt
Integer int intCount
Long lng lngPopulation
Short shr shrAge
Single sng sngTemperature
String str strFirstName

Object Prefixes

Object ClassPrefix     Example
Form frm frmDataEntry
Button btn btnExit
TextBox txt txtPaymentAmount
Label lbl lblTotal
RadioButton rad radBold
CheckBox chk chkPrintTotal
Frame fra fraSelection
Horizontal Scroll Bar hsb hsbRate
Vertical Scroll Bar vsb vsbTemperature
Image img imgLogo
Picture Box pic picLogo
Combo Box cbo cboBookList
List Box lst lstIngredients
Shape shp shpBox