Both in Excel VBA and C#, constants are immutable and must be initialized as they are declared. C# goes a step further and provides the
readonly modifier to create an entity that is initialized at runtime and cannot be changed afterwards
VBA
Public Const msMODULE AS String="modApp"
C#
public const string msMODULE="modApp";
See Also
No comments:
Post a Comment