| BasicNoUIObjMacroCode Method | 
      Returns a macro/module's code.
    
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll) 
 Syntax
Syntaxpublic string MacroCode(
	string fileName
)
Public Function MacroCode ( 
	fileName As String
) As String
public:
virtual String^ MacroCode(
	String^ fileName
) sealed
Parameters
- fileName  String
- 
      Return the code for this macro/module.
      If this is a null string, use the value of the FileName property as the file name.
    
Return Value
String
      The code for this macro/module.
    
Implements
IBasicNoUIMacroCode(String) Remarks
Remarks
      v10.40+: This is the code for the file name.
      If the macro/module's does not exist then the result will be a null string.
      A file with no text returns "\z" (Ctrl-Z).
      
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
Example
Print the active sheet's macro caption:
      
Debug.WriteLine(basicIdeCtl1.MacroCode(""));Debug.WriteLine(BasicIdeCtl1.MacroCode(""))Debug.WriteLine(basicIdeCtl1->MacroCode(L""));
 See Also
See Also