RSV Code Modifications: Declaration Section, All Files

If you have translated any module public or private scoped string constants, VBLM eliminates them by commenting out the lines where they are declared. This is because it is impossible to switch constant values at runtime.

If VBLM finds any of these constants, after commenting them out on the first pass it then takes a second pass through the code to locate and replace all references to them with appropriately indexed calls to VBLM_RTString() (or whatever function name you have chosen instead).

Thus

Public Const cTestConst = "VBLM Test Constant"

becomes

'VBLM: String constants can't be switched at runtime

'All references to the following have been replaced

'with calls to VBLM_RTString()

'Public Const cTestConst = "VBLM Test Constant" 'replaced with VBLM_RTString(508)

 

Warning: It is beyond VBLM's parsing intelligence to discriminate between most different identifiers with the same name; thus if your code has multiple identifiers named cTestConst, VBLM will replace most of them, rightly or wrongly, with VBLM_RTString(). One more good reason for following naming conventions.