GetModeName()

Type: BSTR

Syntax: GetModeName(LPINT mode)

Return the name of 2D mode for the barcode type. For example, DataMatrix barcodes have the mode name “Square” for mode=0 and “Rectangular” for mode=1.

An invalid value in mode will return an empty string, so this method may be used for enumerating the available modes; for example:

For i = 0 To 10
    x$ = AdBarcode1.GetModeName(i)
    If (Len(x$) > 0) Then
        Combomode.AddItem (x$)
    Else
        Exit For
    End If
Next

 

More:

GetTypeName()