Interface

# DBKit.SDK.RowBase

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowBase

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Included in every DBKit SDK control interface. RowBase adds the two things DBKit needs to know about any control, whichever kind it is: the layout it belongs to and the database table it works with.

A control never implements RowBase directly. It implements one of the interfaces that include it, such as `DBKit.SDK.RowDataControl</api/databases/dbkit/sdk/rowdatacontrol>` or `DBKit.SDK.RowsListControl</api/databases/dbkit/sdk/rowslistcontrol>`, and provides these methods as part of that implementation. RowBase itself includes `DBKit.SDK.RowEventReceiver</api/databases/dbkit/sdk/roweventreceiver>`, so every control also receives row events.

## `Methods</getting_started/using_the_xojo_language/methods>`

<div class="rst-class">

methods-table

</div>

| Name                                     | Parameters | Returns                                             |
|------------------------------------------|------------|-----------------------------------------------------|
| `Layout<dbkit.sdk.rowbase.layout>`       |            | `DBKit.SDK.Layout</api/databases/dbkit/sdk/layout>` |
| `TableName<dbkit.sdk.rowbase.tablename>` |            | `String</api/data_types/string>`                    |

## Method descriptions

<div id="dbkit.sdk.rowbase.layout">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowBase.Layout

**Layout**() As `DBKit.SDK.Layout</api/databases/dbkit/sdk/layout>`

> Returns the layout the control is on. Through the layout, the control can reach the layout's current row, its database and its other controls.

<div id="dbkit.sdk.rowbase.tablename">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowBase.TableName

**TableName**() As `String</api/data_types/string>`

> Returns the name of the database table the control works with. For a data control, this is the table its column belongs to. For a rows list control, it is the table whose rows the control displays.

## Notes

The methods an interface requires can be implemented as Private, as the Rating example control in the DBKit example project does. DBKit works with the control through the interface, so the methods do not need to be public on the control class itself.

## Compatibility

|                       |              |
|-----------------------|--------------|
| **Project Types**     | Desktop, Web |
| **Operating Systems** | All          |

<div id="dbkit.sdk.rowbase.seealso">

<div class="seealso">

`DBKit SDK</api/databases/dbkit/sdk>` overview, `DBKit.SDK.RowEventReceiver</api/databases/dbkit/sdk/roweventreceiver>`, `DBKit.SDK.Layout</api/databases/dbkit/sdk/layout>`.

</div>

</div>
