kinook
06-26-2007, 12:27 PM
VBScript:
Version #1 (look for a macro of any type with the given name)
If Not vbld_AllMacros()("MACRO_NAME") Is Nothing Then
Builder.LogMessage "MACRO_NAME exists"
Else
Builder.LogMessage "MACRO_NAME does not exist"
End If
Version #2 (look for a temporary macro with the given name)
If Not vbld_TempMacros()("MACRO_NAME") Is Nothing Then
Builder.LogMessage "MACRO_NAME exists"
Else
Builder.LogMessage "MACRO_NAME does not exist"
End If
Version #1 (look for a macro of any type with the given name)
If Not vbld_AllMacros()("MACRO_NAME") Is Nothing Then
Builder.LogMessage "MACRO_NAME exists"
Else
Builder.LogMessage "MACRO_NAME does not exist"
End If
Version #2 (look for a temporary macro with the given name)
If Not vbld_TempMacros()("MACRO_NAME") Is Nothing Then
Builder.LogMessage "MACRO_NAME exists"
Else
Builder.LogMessage "MACRO_NAME does not exist"
End If