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

circular calculation

Thread ID:

Created:

Updated:

Platform:

Replies:

22316 Dec 9,2004 03:56 PM UTC Dec 11,2004 10:44 AM UTC Windows Forms 1
loading
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.

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

;