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




Reply With Quote