Foundation 6

Fnd_Rec

15 shared methods.

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.

ParameterTypeDirectionDescription
inPositionPositioninThe position
labelTextinThe label
methodTextinThe method
inFieldPointerinThe field (optional)
inFieldTypeLongintinThe 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.

ParameterTypeDirectionDescription
inFieldPointerinA pointer to the table to add
inPositionLongintinThe 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.

ParameterTypeDirectionDescription
recordNumberLongintinRecord number

Fnd_Rec_BestPopupSize

Fnd_Rec_BestPopupSize (->popup array) --> Number

Returns the best object width to use for a pop-up menu form object.

ParameterTypeDirectionDescription
arrayPointerinThe array associated with the popup
ResultLongintoutThe 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. :-(

ParameterTypeDirectionDescription
ResultLongintoutThe extra width required

Fnd_Rec_Info

Fnd_Rec_Info (label) --> Text

Returns requested information. See the Fnd_Gen_ComponentInfo method for more information.

ParameterTypeDirectionDescription
requestTextinInfo desired ("version" or "name")
ResultTextoutResponse

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.

ParameterTypeDirectionDescription
inTablePointerinA 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.

ParameterTypeDirectionDescription
inTablePointerinA 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.

ParameterTypeDirectionDescription
objectPointerinA pointer to the form object
alignmentLongintinThe alignment (side not to move)
ResultLongintoutThe increase in the button size