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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

circular calculation

Thread ID:





22316 Dec 9,2004 03:56 PM UTC Dec 11,2004 10:44 AM UTC WinForms 1
Tags: Calculate
Michel T Dallaire
Asked On December 9, 2004 03:56 PM UTC

Hi, I made a component so I can use the calculator (quickcalc) from a COM component. But from where I am, I don''t have access to the help file of the calculator. It would be great to be able to download only the PDF or chm elp file of a component. My quesion is, is there a way to detect a circular calculation? because when I do this, I get no error and I get false answer: Dim g As New CalculatorVC.CalcQuickVC g("a") = "=[b]+[c]" g("c") = "=[a]" g("b") = "5" MsgBox g("a") & vbCrLf & g("b") & vbCrLf & g("c") Result: a=250, b=5 and c=245 Where did it get the 250 and 245. It''s from a circular calculation, but no way to detect it. Thank you.

Administrator [Syncfusion]
Replied On December 11, 2004 10:44 AM UTC

The reason you see the values you see is that there is circular calculation limit that lets such calculations proceed a certain number of interations (the default is 100) before just returning the currently held value. Our code base has been modified so that instead of CalcQuick just returning a value, it will optionally throw an exception that you could catch. This functionailty will be in the release version currently scheduled for Dec 16.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon