We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Add Calculate Functions Back

Thread ID:

Created:

Updated:

Platform:

Replies:

42780 Apr 5,2006 07:48 PM UTC Apr 6,2006 04:04 AM UTC Windows Forms 1
loading
Tags: Calculate
Peter
Asked On April 5, 2006 07:48 PM UTC

If I use CalcEngine.LibraryFunctions.Clear() to remove all library functions... how do I add back in say the Sum or Round functions? Its the func parm of the AddFunction I am having trouble with!

Administrator [Syncfusion]
Replied On April 6, 2006 04:04 AM UTC

Hi Peter, If you are only using a selected few Library functions, you may want to remove the unused ones. This will reduce the memory usage and may speed up parsing as well. You can use the method CalcEngine.RemoveFunction to remove even a single function. To remove all functions, you can clear the hashtable that holds them by using engine.LibraryFunctions.Clear(). After clearing all functions, you can add back the few methods you often employ. To replace a function with another implementation you must remove the original name and add the same name back with a different delegate method. Please take a look at the \Program Files\Syncfusion\Essential Studio\4.1.0.x\windows\Calculate.Windows\Samples\DataGridCalculator sample. In particular, a new function named Mymin is added to the function library in the SingleDataGridForm.cs or SingleDataGridForm.vb file. Also please refer Documentaiton section: Essential Calculate/Base/Function Library Best Regards, Jeba

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;