TableEdit
Previous  Top  Next

Prototype

TableEdit (intTableHandle)

Description

It 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

//It opens the invoices table 
UnaTabella:=TableOpen('c:\invoices\index\','invoices.db'); 

// Variable
Value:=78;

//It converts the variable value from integer into string
NewValue:=IntToStr(Value);

// It sets the edit mode of the current record
TableEdit(UnaTabella);

//It changes the field value
TableSetFieldByName(UnaTabella, 'order number', NewValue);

//It confirms the change 
TablePost(UnaTabella);

//It executes other operations