vb6 - Making the VB compiler warn when I don't declare variables properly -


how can make vb6 compiler fail when forget declare variable?

this stop various typing errors (both keyboard , data types) , errors this when tries access unexpected.

problems caused not correctly declaring variables:

you should use option explicit. should put on first line of every module , form's code section.

you can configure vb6 ide add automatically new modules going tools > options > require variable declaration.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -