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
close icon

Array Variable in a CalcQuickBase

Hi,

Is there a way to index an array in an equation?

CalcQuickBase cqb = new CalcQuickBase();

cqb["A"] = {1,2,3,4}

For example, I would like to be able to use A(1) (which has a value of 2).

e.g. String s = cqb.ParseAndCompute("Sin([A(1)])");

Is it possible?

Thanks a lot,

Alex

1 Reply

NR Nirmal Raja Syncfusion Team August 24, 2010 06:26 AM UTC

Hi Alex,

Thank you for your interest in Syncfusion products.

The calculate engine of each entry will have the values or formula of the grid and does not hold a array as it retrieves the hash table behavior. Instead you can have any string as a key to the engine to have the values according to the values.

Please refer the sample from our browser sample in the following location:
{Installed Drive}:\Syncfusion\EssentialStudio\8.3.0.21\Windows\Calculate.Windows\Samples\2.0\Working With CalcQuick Demo\cs

Let me know if you have any queries.

Regards,
Nirmal

Loader.
Live Chat Icon For mobile
Up arrow icon