BasicNoUIObjIsModuleLoaded Method |
Determines if the module is loaded.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntaxpublic bool IsModuleLoaded(
string fileName
)
Public Function IsModuleLoaded (
fileName As String
) As Boolean
public:
virtual bool IsModuleLoaded(
String^ fileName
) sealed
Parameters
- fileName String
-
If this is a null string, use the value of the FileName property as the file name.
Return Value
Boolean
True if module is loaded.
Implements
IBasicNoUIIsModuleLoaded(String)
Remarks
A loaded module has been parsed and is possibly executing.
Macro/Module Paths
Macro/module paths are typically file paths.
However, it is sometimes useful to work with macros/modules that are not
stored as files.
A macro/module path is of the form:
Part
|
Description
|
---|
'*'
|
Paths that being with '*' are non-file system macro/modules.
The application provides the methods for reading and writing these files.
Paths that begin and end with '*' are hidden from the IDE.
User's can't step into or otherwise inspect the contents.
|
'**'
|
Paths that begin with '**' are non-file system modules.
The application provides the methods for reading and writing these files.
Running an event-driven module loads it using LoadModule.
|
path
|
This is the identity of the macro/module.
|
Example
If "TEST.BAS" is loaded then unload it:
if (basicIdeCtl1.IsModuleLoaded("TEST.BAS"))
basicIdeCtl1.UnloadModule("TEST.BAS");
If BasicIdeCtl1.IsModuleLoaded("TEST.BAS") Then
BasicIdeCtl1.UnloadModule("TEST.BAS")
End If
if (basicIdeCtl1->IsModuleLoaded(L"TEST.BAS"))
basicIdeCtl1->UnloadModule(L"TEST.BAS");
See Also