Classic Visual Basic

  • A single project can contain up to 32,000 "identifiers" (any nonreserved keyword), which include, but are not limited to, forms, controls, modules, variables, constants, procedures, functions, and objects

  • Variable names in Visual Basic can be no longer than 255 characters

  • The names of forms, controls, modules, and classes cannot be longer than 40 characters

  • The amount of code that can be loaded into a form, or module is limited to 65,534 lines

  • A single line of code can consist of up to 1023 bytes

  • Up to 256 blank spaces can precede the actual text on a single line

  • No more than twenty-four line-continuation characters ( _) can be included in a single logical line

  • Each procedure can contain up to 64K of code

  • Roughly 1,500 declarations allowed per module

  • Limit of about 400 modules per project

  • There is a fixed limit of 254 control names per form. A control array counts only once toward this limit because all the controls in the array share a single control name.

  • The limit on control array indexes is 0 to 32,767 on all versions.

  • Maximum number of list items is 32K

  • Text box controls are limited to 64K, and labels to 1024 bytes.

  • Command button, check box, frame, and option button controls are limited to 255 characters.

  • Menu controls are limited to 235 characters.