Hello!

I'm having trouble with the FieldData[] part.

Here is a code segment:

Code:
 public struct dataObj
        {
            string Delimiter;
            string[] FieldData = new string[128];
            int NumberOfFields;
            string TxString;
            int TransmitInterval;
        }
        public dataObj MyDataObj = new dataObj
I need to be able to use the structure like this:
Code:
MyDataObj.Delimiter = ",";
MyDataObj.FieldData[0] = "555";
MyDataObj.FieldData[1] = "543";
...
...
MyDataObj.FieldData[n] = "xxx";
MyDataObj.NumberOfFields = 10;
Can someone show me how to do this?
I can do this using a VisualBasic method, but I am trying to avoid this if possible.
Thanks!