Click or drag to resize

McCommandUserCode Property

User code in macros.

Namespace:  MediaCy.IQL.Application
Assembly:  MediaCy.IQL.Application (in MediaCy.IQL.Application.dll) Version: 3.1.0.0
Syntax
VB
Public Property UserCode As String
	Get
	Set

Property Value

Type: String

Return Value

Type: String
Remarks
Any comment after the script creation (New) and before the first With starts the script user code region. Any comment after the With beginning a command starts a user code region which ends at the .Run statement.
Examples
Function MyScript() As SimpleScript 
    MyScript = New SimpleScript
    Dim var1

    ' Beginning User Code
    Dim userVar

    With Application.Document.Open(MyScript)
        .Filenames = {"C:\image.tif"}

        ' Beginning User Code
        .UserProperty = True

        .Run(list)
    End With
End Function
See Also