I am going through some old VB6 code and in many forms, I encounter declaration 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 values? Thanks.
Yes. Numerical and date types default to 0, strings to an empty string (i.e., “”), boolean to False, and variant to EMPTY.