2.3.4.2.1.12 PROJECTCONSTANTS Record

Specifies the compilation constants for the VBA project.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Id

SizeOfConstants

...

Constants (variable)

...

Reserved

SizeOfConstantsUnicode

...

ConstantsUnicode (variable)

...

Id (2 bytes): An unsigned integer that specifies the identifier for this record. MUST be 0x000C.

SizeOfConstants (4 bytes): An unsigned integer that specifies the size in bytes of Constants. MUST be less than or equal to 1015.

Constants (variable): An array of SizeOfConstants bytes that specifies the compilation constants for the VBA project. MUST contain MBCS characters encoded using the code page specified in PROJECTCODEPAGE (section 2.3.4.2.1.5). MUST NOT contain null characters.

MUST conform to the following ABNF grammar:

 Constants     = Constant *( " : " Constant )
  
 Constant      = ConstantName " = " ConstantValue
  
 ConstantName  = VbaIdentifier
  
 ConstantValue = ["-"] 1*5DIGIT

<ConstantName>: Specifies a unique VBA identifier for the constant.

<ConstantValue>: Specifies the numeric value for the constant. SHOULD be between −9999 and 32767. MAY be between −32768 and 32767 on read.<7>

Reserved (2 bytes): MUST be 0x003C. MUST be ignored.

SizeOfConstantsUnicode (4 bytes): An unsigned integer that specifies the size in bytes of ConstantsUnicode. MUST be even.

ConstantsUnicode (variable): An array of SizeOfConstantsUnicode bytes that specifies the compilation constants for the VBA project. MUST contain UTF-16 characters. MUST NOT contain null characters. MUST contain the UTF-16 encoding of Constants.