In VB6, declared fields have default values?

I look through some old VB6 code and in many forms I come across statements like -

 PEC_NUM_ENT(1) As Byte
 EC_MORE_RW_EXIST(0) As Byte
 EC_CODE_IND(0) As Byte
 EC_DATA(7) As PRXDetail 

My question is, do these fields have default values? If so, what are the meanings? Thank.

+5
source share
2 answers

Yes. By default, numeric and date types are 0, lines to an empty string (ie ""), From boolean to False, and the EMPTY variant.

+11
source

The documentation VB6

, 0, (""), - . . , .

PRXDETAIL

+7

All Articles