Class
DBKit.NewButton
DBKit.NewButton
Description
Creates a new row for the database table to which it's assigned.
Only the members declared by DBKit.NewButton itself are described here; for the inherited members, see the parent classes.
Properties
Name |
Type |
Default |
Description |
|---|---|---|---|
Methods
Name |
Parameters |
Returns |
Shared |
|---|---|---|---|
Events
Name |
Parameters |
Returns |
|---|---|---|
row As DBKit.Row |
||
row As DBKit.Row |
||
row As DBKit.Row |
||
row As DBKit.Row |
||
row As DBKit.Row |
||
row As DBKit.Row |
||
row As DBKit.Row |
||
row As DBKit.Row |
Property descriptions
DBKit.NewButton.TableName
TableName As String
The name of the database table for which this button creates a new row.
Method descriptions
DBKit.NewButton.TableName
TableName() As String
Returns the name of the database table for this control: the TableName property if set, otherwise the table name of the control's layout.
Event descriptions
DBKit.NewButton.Error
Error() As String
A DatabaseException occurred when the control attempted to create a new row.
Implement this event to display your own error message instead of DBKit's default message. Return the message to display, or return an empty string to display no message at all. If you do not implement this event, DBKit displays a default error message.
DBKit.NewButton.RowChanged
RowChanged(row As DBKit.Row)
The current row (passed to the event) has been changed.
DBKit.NewButton.RowCreated
RowCreated(row As DBKit.Row)
A new row (passed to the event) was just created and is now the current row.
DBKit.NewButton.RowDeleted
RowDeleted(row As DBKit.Row)
The current row (passed to the event) has been deleted.
DBKit.NewButton.RowEditing
RowEditing(row As DBKit.Row)
The current row (passed to the event) is being edited by the user.
DBKit.NewButton.RowLoaded
RowLoaded(row As DBKit.Row)
The current row (passed to the event) has been loaded.
DBKit.NewButton.RowNotSelected
RowNotSelected
There is no row currently selected.
DBKit.NewButton.RowSaved
RowSaved(row As DBKit.Row)
The current row (passed to the event) has been saved.
DBKit.NewButton.RowSaving
RowSaving(row As DBKit.Row)
The current row (passed to this event) is about to be saved.
DBKit.NewButton.RowUndone
RowUndone(row As DBKit.Row)
The changes made to the current row (passed to this event) have been undone.
Notes
Creating Table rows
When the button's TableName matches the TableName of a Table on the layout rather than the layout's own TableName, pressing the button creates a new row in the Table.
Compatibility
Project Types |
Desktop, Web |
Operating Systems |
All |
See also
DesktopButton (desktop) and WebButton (web) parent classes; DBKit.Row class.