Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » MobiLink - Client Administration » Introduction to SQL Anywhere Clients for MobiLink » Dbmlsync integration component (deprecated) » IRowTransferData interface


ColumnName property

Retrieves the column names for a row on which an upload or download operation occurred.

Public Property ColumnName(ByVal index As Integer) As Object
Member of DbmlsyncCOM.IRowTransferData

index   A zero based integer specifying the column name to be retrieved. Index values range from zero to one less than the ColumnCount property value.

See ColumnCount property.


Associated column values can be retrieved using the ColumnValue property with the same index.


The following Visual Basic .NET example iterates through all the columns for a row in the UploadRow event. It determines if a column value is null and outputs column names and values.

See UploadRow event.

Private Sub dbmlsync1_UploadRow(
 ByVal rowData As DbmlsyncCOM.IRowTransferData
Handles dbmlsync1.UploadRow

Dim liX As Integer
For liX = 0 To rowData.ColumnCount - 1
    If VarType(rowData.ColumnValue(liX)) <> VariantType.Null Then
        ' output the non-null column value
        MsgBox("Column " + CStr(liX) + ": " + rowData.ColumnName(liX) + _
        ", " + CStr(rowData.ColumnValue(liX)))
        ' output 'NULL' for the column value
        MsgBox("Column " + CStr(liX) + ": " + rowData.ColumnName(liX) + _
        ", " + "NULL")
    End If
Next liX

End Sub