Fnd_Rec
15 shared methods.
- Fnd_Rec_AddItem
- Fnd_Rec_AddTable
- Fnd_Rec_AddToSelection
- Fnd_Rec_BestPopupSize
- Fnd_Rec_DeleteUserSet
- Fnd_Rec_GetExtraWidth
- Fnd_Rec_Info
- Fnd_Rec_Localize
- Fnd_Rec_Modify
- Fnd_Rec_ModifyErrorHandler
- Fnd_Rec_NewRecord
- Fnd_Rec_OmitSubset
- Fnd_Rec_ShowAll
- Fnd_Rec_ShowSubset
- Fnd_Rec_SizeArrayObject
Fnd_Rec_AddItem
Fnd_Rec_AddItem (position; label; method{; ->field{; type}})
Called by the protected "Fnd_Rec_Add" routines to add stuff to the arrays.
If the label is blank, the field name will be used.
| Parameter | Type | Direction | Description |
|---|---|---|---|
inPosition | Position | in | The position |
label | Text | in | The label |
method | Text | in | The method |
inField | Pointer | in | The field (optional) |
inFieldType | Longint | in | The field's type (optional) |
Fnd_Rec_AddTable
Fnd_Rec_AddTable (->table{; position})
Loads the visible fields for the current form's table into an array named Fnd_Rec_Fields_aptr.
| Parameter | Type | Direction | Description |
|---|---|---|---|
inField | Pointer | in | A pointer to the table to add |
inPosition | Longint | in | The position in which to add the item (optional) |
Fnd_Rec_AddToSelection
Fnd_Rec_AddToSelection (record number)
Adds the record to the current selection. Designed to be called from an output form. See Fnd_IO_FormMethod.
| Parameter | Type | Direction | Description |
|---|---|---|---|
recordNumber | Longint | in | Record number |
Fnd_Rec_BestPopupSize
Fnd_Rec_BestPopupSize (->popup array) --> Number
Returns the best object width to use for a pop-up menu form object.
| Parameter | Type | Direction | Description |
|---|---|---|---|
array | Pointer | in | The array associated with the popup |
Result | Longint | out | The best object size for the pop-up |
Fnd_Rec_DeleteUserSet
Fnd_Rec_DeleteUserSet
Deletes the highlighted records in the current selection (the "UserSet").
Asks the user first if they're sure the records should be deleted.
Designed to be called from the Delete button on the toolbar or from a Delete menu item.
No parameters.
Fnd_Rec_GetExtraWidth
Fnd_Rec_GetExtraWidth --> Number
Returns the extra width needed to display the Modify Records dialog so none of the text in the pop-up menus gets truncated.
Lots of stuff is hard-coded here because we can't get it procedurally. :-(
| Parameter | Type | Direction | Description |
|---|---|---|---|
Result | Longint | out | The extra width required |
Fnd_Rec_Info
Fnd_Rec_Info (label) --> Text
Returns requested information. See the Fnd_Gen_ComponentInfo method for more information.
| Parameter | Type | Direction | Description |
|---|---|---|---|
request | Text | in | Info desired ("version" or "name") |
Result | Text | out | Response |
Fnd_Rec_Localize
Fnd_Rec_Localize
Passed the localization strings to the General and (if available) Localization components.
No parameters.
Fnd_Rec_Modify
Fnd_Rec_Modify
Displays a dialog allowing the user to modify all of the records in the current selection.
No parameters.
Fnd_Rec_ModifyErrorHandler
Fnd_Rec_ModifyErrorHandler
A method with no code, installed as the error handler for the Modify Records dialog. It never handled anything; it silenced.
Deprecated 2026-08-22. Call Fnd_Gen_SilentError instead. The body was always empty, so the two methods were never different. This one served one ON ERR CALL site in Fnd_Rec_Modify.
No parameters.
Fnd_Rec_NewRecord
Fnd_Rec_NewRecord ({->table})
Creates a new record for the current table.
| Parameter | Type | Direction | Description |
|---|---|---|---|
inTable | Pointer | in | A pointer to the table to use (optional) |
Fnd_Rec_OmitSubset
Fnd_Rec_OmitSubset
Omits the highlighted records from the current selection.
No parameters.
Fnd_Rec_ShowAll
Fnd_Rec_ShowAll ({->table})
Updates the selection to include all records. If the Macintosh Option key or Windows Alt key is down, the selection is reduced to no records.
| Parameter | Type | Direction | Description |
|---|---|---|---|
inTable | Pointer | in | A pointer to the table to use (optional) |
Fnd_Rec_ShowSubset
Fnd_Rec_ShowSubset
Reduces the current selection to just the highlighted records.
No parameters.
Fnd_Rec_SizeArrayObject
Fnd_Rec_SizeArrayObject (->object; alignment) --> Number
Sets the best size for an array based form object based on the contents it displays.
Rather than using BEST OBJECT SIZE, we calculate the size the same way we did before opening the dialog using the Fnd_Find_GetExtraWidth method.
| Parameter | Type | Direction | Description |
|---|---|---|---|
object | Pointer | in | A pointer to the form object |
alignment | Longint | in | The alignment (side not to move) |
Result | Longint | out | The increase in the button size |