topSheet

Type: Integer (Table class), Sheet (Folder class)

Availability: Read or write at run time only

The topSheet property contains the sheet of a Folder control or Table control that is currently visible (the topmost).

For a Folder control:

For a Table control:

The following example shows the use of the topSheet property.

buttonOK_click(btn: Button input) updating;
begin
    if folder1.topSheet.name = 'customerEdit' then
        beginTransaction;
        myCustomer.update(textBoxName.text, textBoxAddress.text);
        commitTransaction;
    elseif folder1.topSheet.name = 'employeeEdit' then
        beginTransaction;
        myEmployee.update(textBoxName.text, textBoxTaxNumber.text);
        commitTransaction;
    endif;
end;