Contents Index Insert method LookupBackward method

UltraLite ActiveX User's Guide
  UltraLite ActiveX API Reference
    ULTable class

InsertBegin method


Prototype 

InsertBegin( )
Member of UltraliteActiveX.ULTable

Description 

Prepares a table for inserting a new row, setting column values to their defaults.

Examples 

In this example, InsertBegin sets insert mode to allow you to begin assigning data values to CustomerTable columns.

' eMbedded Visual Basic
CustomerTable.InsertBegin
CustomerTable.Columns("Fname").Value = fname
CustomerTable.Columns("Lname").Value = lname
If Len(city) > 0 Then
  CustomerTable.Columns("City").Value = city
End If
If Len(phone) > 0 Then
  CustomerTable.Columns("phone").Value = phone
End If
CustomerTable.Insert
// JScript
CustomerTable.InsertBegin();
CustomerTable.Columns("Fname").Value = fname;
CustomerTable.Columns("Lname").Value = lname;
If ( Len(city) > 0 ) {
  CustomerTable.Columns("City").Value = city;
}
If ( Len(phone) > 0 ) {
  CustomerTable.Columns("phone").Value = phone;
}
CustomerTable.Insert();
See also 

UpdateBegin method


Contents Index Insert method LookupBackward method