TableEdit

Top  Previous  Next

Prototype

 

TableEdit (intTableHandle)

 

Description

 

Sets the edit mode of the table.

 

Parameters

 

IntTableHandle: integer value corresponding to the table handle.

 

Returned value

 

None.

 

Notes

 

The edit mode for the table refers to the current record, by moving from a record to another one, there is a return to the consultation mode.

Use the TablePost command in order to confirm the additions, while to cancel them use the TableCancel command.

 

 

Example

 

// Opens the invoices table

TableOne:=TableOpenBDE('c:\invoices\index\','invoices.db');

 

// Variable

Value:=78;

 

// Convert the variable value from integer into string

NewValue:=IntToStr(Value);

 

// Set the edit mode of the current record

TableEdit(TableOne);

 

// Change the field value

TableSetFieldByName(TableOne, 'order number', NewValue);

 

// Confirm the change

TablePost(TableOne);

 

// Execute other operations