Contents of this page:
VB variables can be defined or dimensioned using the Dim keyword to specify their type and/or size (for arrays). Python has no equivalent of the Dim statement but the converted code attempts to match the semantics of the Dim by,
Note, however, that this conversion does not fix the type and size of the object and subsequent rebindings of the name will remove all reference to the previous type. Using the Preserve option with the ReDim command causes the original variable to be passed to the vbfunctions.vbObjectInitialize so that the contents of the object can be retained after resizing.
VB | Python |
---|---|
|
|
There are no options specific to the Dim statement.