private static TCellFunctionData[] CreateIndexFunc() { TCellFunctionData[] Result = new TCellFunctionData[MaxFunctions]; foreach (TCellFunctionData fd in Ht.Values) { Result[fd.Index] = fd; } return(Result); }
internal static TCellFunctionData GetData(int Index) { bool Found; TCellFunctionData Result = GetData(Index, out Found); if (!Found) { FlxMessages.ThrowException(FlxErr.ErrInvalidValue, "Function id", Index, 0, MaxFunctions - 1); } return(Result); }
protected override void AddParsedFunction(TCellFunctionData Func, byte ArgCount) { ptg FmlaPtg; if (Func.MinArgCount != Func.MaxArgCount || Func.FutureInXls) { FmlaPtg = GetRealPtg(ptg.FuncVar, Func.ReturnType); } else { FmlaPtg = GetRealPtg(ptg.Func, Func.ReturnType); } TBaseParsedToken FmlaToken = TParsedTokenListBuilder.GetParsedFormula(FmlaPtg, Func, ArgCount); Push(FmlaToken); }
internal static TCellFunctionData GetData(int Index, out bool Found) { if ((Index < 0) || (Index >= MaxFunctions)) { Found = false; return(null); } TCellFunctionData Result = IndexFunc[Index]; if (Result == null) { Found = false; return(null); } Found = true; return(Result); }
private static void Add(TCellFunctionDataDictionary Result, TCellFunctionData Func) { Result.Add(Func.Name, Func); }