Skip to main content

TdxSpreadSheetFunctionsRepository.AddUnknown(string,TdxSpreadSheetFunctionType) Method

Saves an “unknown” function name token as an unimplemented function signature in the spreadsheet function repository.

Declaration

function AddUnknown(const AName: string; AType: TdxSpreadSheetFunctionType = ftCommon): TdxSpreadSheetFunctionInfo;

Parameters

Name Type
AName string
AType TdxSpreadSheetFunctionType

Returns

Type
TdxSpreadSheetFunctionInfo

Remarks

This function supports the internal infrastructure and is not intended for use in your code. Call the Add procedure if you need to create a new or redefine an existing function signature in the repository.

XLS import routines call the AddUnknown function to register and preserve external references and “unknown” (that is, those without a match in the spreadsheet function repository) function name tokens for subsequent document save operations, so third-party applications can open a re-saved XLS document without errors.

The AddUnknown function creates an empty (that is, “reserved”) function signature for a token name passed as the AName parameter. The optional AType parameter defines a category to which the signature should belong. The function also explicitly initializes the function signature’s NamePtr, Proc, and ParamInfo fields to nil (in Delphi) or nullptr/NULL (in C++Builder).

See Also