troubleshooting Question

checking data in array

Avatar of paulwhelan
paulwhelan asked on
7 Comments1 Solution283 ViewsLast Modified:
ive an array of objects and i try to check one of the objects values

if (InfoArray[4].ToString().Length > 0)
However when I hover over InforArray[4] I get
System.Windows.Forms.TextBox, Text:

I create it like this

int iTrue = 1;
            int iFalse = 0;

            this._oList.Add(_cHasMinLengthCheckBox.Checked ? iTrue : iFalse);
            this._oList.Add(_cHasMaxLengthCheckBox.Checked ? iTrue : iFalse);

I just want to know how can I find out the length of the 'onject/string' in position 4

I cant seem to hover over .length to find out what its length is?

if (InfoArray[4].ToString().Length > 0)


ps the info below might help its used on the same page

public override void ToDataType(DataType oDataType)
            StringDataType oStringDataType = (StringDataType)oDataType;
            oStringDataType.MinLength = (int)_cMinLengthNumericUpDown.Value;
            oStringDataType.HasMinLength = _cHasMinLengthCheckBox.Checked;
            oStringDataType.MaxLength = (int)_cMaxLengthNumericUpDown.Value;
            oStringDataType.HasMaxLength = _cHasMaxLengthCheckBox.Checked;
            oStringDataType.RegularExpression = _cRegularExpressionTextBox.Text;
            oStringDataType.AllowedCharacters = _cAllowedCharactersTextBox.Text;
            oStringDataType.FailureMessage = _oFailureMessageTextBox.Text;

        public override void FromDataType(DataType oDataType)
            StringDataType oStringDataType = (StringDataType)oDataType;
            _cHasMinLengthCheckBox.Checked = oStringDataType.HasMinLength;
            _cMinLengthNumericUpDown.Value = oStringDataType.MinLength;
            _cHasMaxLengthCheckBox.Checked = oStringDataType.HasMaxLength;
            _cMaxLengthNumericUpDown.Value = oStringDataType.MaxLength;
            _cRegularExpressionTextBox.Text = oStringDataType.RegularExpression;
            _cAllowedCharactersTextBox.Text = oStringDataType.AllowedCharacters;
            _oFailureMessageTextBox.Text = oStringDataType.FailureMessage;

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 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 7 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