Click or drag to resize

IBasicNoUIHiddenCode Property

Gets or sets the hidden code text.

Namespace: WinWrap.Basic.Server
Assembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntax
string HiddenCode { get; set; }

Property Value

String
The hidden code text.
Remarks
The string assigned to this property is parsed as a separate module. Public symbols in HiddenCode can be accessed by the RunFile and RunThis methods.

Useful shared code can also be placed in the HiddenCode. When the HiddenCode is set it is parsed and its variables are allocated. In addition if the HiddenCode has a Private Sub Main, the main will be executed. Initialization code can be placed there. (Modules can be loaded in advance for all other macros/modules by placing '#Uses comments in the HiddenCode.)

HiddenCode is not loaded until the the first call to:

This allows AddExtensionObject (and AddExtensionObjectWithEvents) to be called before the HiddenCode is parsed. Calling RemoveExtensions("") forces the HiddenCode to be unloaded. In that case, it will not be reloaded (parsed) until it is needed by one of the properties or methods listed above.
See Also