troubleshooting Question

Array has contents in one function but not in another?

Avatar of paulwhelan
paulwhelan asked on
8 Comments1 Solution205 ViewsLast Modified:
I copied and pasted some code and cant understand why one works and the other doesn't.

Im working off code for a wizard to add data types and need to add one for a string data type.

On the number and string pages I do this

private bool AllowNext(bool bShowDialogs)

            if (_oWizard._oCurrentDataTypeWizardPage._oList.Count > 0)
                int[] iInfoArray = new int[_oWizard._oCurrentDataTypeWizardPage._oList.Count];

            return true;

_oList is where the data is held that is entered on the first page of the wizard.

Yet on the number page its always 6 (6 values are entered on first page of the number wizard)
and on the string page its always 0 (even though there are 7 values entered on the first page of the string wizard)

I just dont understand why the _oList.Count is finding values for the Number data type but not for my new string data type?

Anything thats not clear please ask.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros