Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetFunctionsRepository.AddUnknown(string,TdxSpreadSheetFunctionType) Method

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

#Declaration

Delphi
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