Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
465
Dynamically Creating a LinearGauge Collection
posted

I want to create a LinearGauge collection based on a result set from a stored procedure.  I will not know how many records will be returned until runtime, therefore, I cannot explicitly create instances of new linear gauges.  I tried creating an ILIST of the type LinearGauge using the following statement but that was not allowed.

IList<LinearGauge> myGauges = new IList<LinearGauge>();

Can you suggest a way to create the gauge collection as I am looping through a result set?  Thanks in advance for your help!

Parents Reply Children