Functions | |
int | mdlVBA_parseMacroSpecification (ParsedMacroSpecification *pResult, WCharP pSpecification) |
Parses the macro specification. More... | |
void | mdlVBA_getLastError (VbaInterfaceError *pVBAInterfaceCode, int *pSDKCode) |
Retrieves the last error code. More... | |
bool | mdlVBA_isIdeVisible () |
Gets whether the VBE Editor is displayed. More... | |
int | mdlVBA_runMacro (WCharCP pProjectName, WCharCP pModule, WCharCP pMacro) |
Runs the specified macro. More... | |
int | mdlVBA_runProcedure (WCharP pResult, int resultLength, WCharCP pProjectName, WCharCP pModuleName, WCharCP pProcedureName, int nArguments, WChar const **pArguments) |
Runs a Sub or Function. More... | |
int | mdlVBA_executeLine (WCharCP pProjectName, WCharCP pLine) |
Executes a line of VB code just like it was typed into the immediate window of the VBA Editor. More... | |
int | mdlVBA_showMacrosDialog () |
Shows the macros dialog for all projects. More... | |
int | mdlVBA_showProjectMacrosDialog (WCharCP pProjectName) |
Shows the macros dialog for a specific project. More... | |
void | mdlVBA_getMacroArgument (WChar *pBuffer, int maxCharacters) |
Gets the value that the Application.KeyinArguments property returns. More... | |
void | mdlVBA_setMacroArgument (WCharCP pBuffer) |
Sets the value that the Application.KeyinArguments property returns. More... | |
int | mdlVBA_loadProject (WCharCP pFileName) |
Loads a VBA project. More... | |
int | mdlVBA_unloadProject (WCharCP pProjectName) |
Unloads a VBA project. More... | |
void | mdlVBA_reportCurrentError () |
Displays an error message that describes the result of the last VBA command or call to an mdlVBA_ function. More... | |
void | mdlVBA_reportParseError (WCharCP pProjectName) |
Displays an error message that describes the syntax error that mdlVBA_executeLine detected. More... | |
int mdlVBA_executeLine | ( | WCharCP | pProjectName, |
WCharCP | pLine | ||
) |
Executes a line of VB code just like it was typed into the immediate window of the VBA Editor.
[in] | pProjectName | points to the name of the project to use as an execution context; can be NULL |
[in] | pLine | points to the line of VBA code |
void mdlVBA_getLastError | ( | VbaInterfaceError * | pVBAInterfaceCode, |
int * | pSDKCode | ||
) |
Retrieves the last error code.
[in] | pVBAInterfaceCode | Points to location to receive MicroStation's VBA error code |
[in] | pSDKCode | Points to location to receive the last error code from the VBA SDK. |
void mdlVBA_getMacroArgument | ( | WChar * | pBuffer, |
int | maxCharacters | ||
) |
Gets the value that the Application.KeyinArguments property returns.
[out] | pBuffer | The contents of Application.KeyinArguments are copied to this location |
[in] | maxCharacters | Specifies the size of the space pBuffer points to |
bool mdlVBA_isIdeVisible | ( | ) |
Gets whether the VBE Editor is displayed.
int mdlVBA_loadProject | ( | WCharCP | pFileName | ) |
Loads a VBA project.
[in] | pFileName | The name of the file that contains the project. |
int mdlVBA_parseMacroSpecification | ( | ParsedMacroSpecification * | pResult, |
WCharP | pSpecification | ||
) |
Parses the macro specification.
[out] | pResult | The results of parsing are stored here. |
[in] | pSpecification | A standard macro specification. |
void mdlVBA_reportCurrentError | ( | ) |
Displays an error message that describes the result of the last VBA command or call to an mdlVBA_ function.
void mdlVBA_reportParseError | ( | WCharCP | pProjectName | ) |
Displays an error message that describes the syntax error that mdlVBA_executeLine detected.
[in] | pProjectName | This should be the same name that was passed to mdlVBA_executeLine |
int mdlVBA_runMacro | ( | WCharCP | pProjectName, |
WCharCP | pModule, | ||
WCharCP | pMacro | ||
) |
Runs the specified macro.
[in] | pProjectName | specifies the project to search for the macro. If NULL, all projects are searched. |
[in] | pModule | specifies the module to search for the macro. If NULL, all modules are searched. |
[in] | pMacro | specifies the name of the macro |
int mdlVBA_runProcedure | ( | WCharP | pResult, |
int | resultLength, | ||
WCharCP | pProjectName, | ||
WCharCP | pModuleName, | ||
WCharCP | pProcedureName, | ||
int | nArguments, | ||
WChar const ** | pArguments | ||
) |
Runs a Sub or Function.
[in] | pResult | points to a buffer that gets a string representation of the result; NULL is allowed |
[in] | resultLength | size of the buffer that gets the result. |
[in] | pProjectName | specifies the project to search for the macro. If NULL, all projects are searched. |
[in] | pModuleName | specifies the module to search for the macro. If NULL, all modules are searched. |
[in] | pProcedureName | specifies the name of the procedure |
[in] | nArguments | number of arguments to pass to the procedure |
[in] | pArguments | an array of arguments |
void mdlVBA_setMacroArgument | ( | WCharCP | pBuffer | ) |
Sets the value that the Application.KeyinArguments property returns.
[in] | pBuffer | Contents of this string are copied. |
int mdlVBA_showMacrosDialog | ( | ) |
Shows the macros dialog for all projects.
int mdlVBA_showProjectMacrosDialog | ( | WCharCP | pProjectName | ) |
Shows the macros dialog for a specific project.
[in] | pProjectName | Specifies a project |
int mdlVBA_unloadProject | ( | WCharCP | pProjectName | ) |
Unloads a VBA project.
[in] | pProjectName | This may be the project name or the name of the file that contains the project. If it is the file name, it must be the full name. Case is ignored for both project name and file name. |