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

SAP Sybase SQL Anywhere 16.0 » UltraLite - .NET Programming » UltraLite.NET application development » Data creation and modification using the ULTable class » Row updates

 

Updating a row in a table

Use the Update method to update a row in a table.

Prérequis

There are no prerequisites for this task.

 Task
  1. Move to the row you want to update.

    You can move to a row by scrolling through the table or by searching the table using find or lookup methods.

  2. Enter update mode.

    For example, the following instruction enters update mode on a table.

    t.UpdateBegin();
  3. Set the new values for the row to be updated.

    For example, the following instruction sets the id column in the buffer to 3.

    t.SetInt( id , 3);
  4. Execute the Update.

    t.Update();

Résultat

The current row is updated. If you changed the value of a column in the index specified when the Table object was opened, the current row is undefined.