Click here to Skip to main content
15,915,164 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reverse Engineering Added Numbers Pin
Colin Angus Mackay20-Dec-05 23:04
Colin Angus Mackay20-Dec-05 23:04 
GeneralThanks Pin
redfish3423-Dec-05 1:22
redfish3423-Dec-05 1:22 
QuestionStruct of array Pin
peppepinna20-Dec-05 22:32
peppepinna20-Dec-05 22:32 
AnswerRe: Struct of array Pin
Colin Angus Mackay20-Dec-05 22:41
Colin Angus Mackay20-Dec-05 22:41 
GeneralRe: Struct of array Pin
peppepinna20-Dec-05 22:56
peppepinna20-Dec-05 22:56 
GeneralRe: Struct of array Pin
peppepinna20-Dec-05 23:08
peppepinna20-Dec-05 23:08 
GeneralRe: Struct of array Pin
Colin Angus Mackay20-Dec-05 23:13
Colin Angus Mackay20-Dec-05 23:13 
AnswerRe: Struct of array Pin
Colin Angus Mackay20-Dec-05 23:12
Colin Angus Mackay20-Dec-05 23:12 
Sorry, I missed what you were getting at.

tab.index = new string[length];
for(int i=0; i<length; i++)
{
    tab.index[i] = ""; // Or what ever string needs to be initialised
}


Your class does not have a constructor (so C# will create a default one for you) perhaps you should consider creating one in order to initialise the fields properly.

Also, you may want to consider making your fields private or protected and exposing them through properties. See this article[^] for some good reasons to use properties.


My: Blog | Photos

"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius

-- modified at 5:12 Wednesday 21st December, 2005


GeneralRe: Struct of array Pin
peppepinna20-Dec-05 23:17
peppepinna20-Dec-05 23:17 
QuestionContinuous update of PrintPreviewControl Pin
lclarsen20-Dec-05 21:52
lclarsen20-Dec-05 21:52 
AnswerRe: Continuous update of PrintPreviewControl Pin
tatchung20-Dec-05 22:41
tatchung20-Dec-05 22:41 
GeneralRe: Continuous update of PrintPreviewControl Pin
lclarsen21-Dec-05 0:48
lclarsen21-Dec-05 0:48 
QuestionDraw in application using c# Pin
Mahi.Ragava20-Dec-05 21:28
Mahi.Ragava20-Dec-05 21:28 
AnswerRe: Draw in application using c# Pin
Bassam Saoud21-Dec-05 23:27
Bassam Saoud21-Dec-05 23:27 
GeneralRe: Draw in application using c# Pin
Mahi.Ragava21-Dec-05 23:52
Mahi.Ragava21-Dec-05 23:52 
QuestionCalling AcceptChanges not updating RowStatus Pin
hasansheik20-Dec-05 21:12
hasansheik20-Dec-05 21:12 
QuestionScanning a document Pin
minkinin20-Dec-05 20:46
minkinin20-Dec-05 20:46 
GeneralCall to ACCEPT Changes not working Pin
hasansheik20-Dec-05 20:39
hasansheik20-Dec-05 20:39 
GeneralRe: Call to ACCEPT Changes not working Pin
tarasn20-Dec-05 22:56
tarasn20-Dec-05 22:56 
QuestionSelect Complete Row in Datagrid Pin
Abubakarsb20-Dec-05 20:01
Abubakarsb20-Dec-05 20:01 
QuestionTrasnfer data using Modem Pin
ayuba asia20-Dec-05 20:00
ayuba asia20-Dec-05 20:00 
QuestionSql Timeout Error Pin
ayuba asia20-Dec-05 19:57
ayuba asia20-Dec-05 19:57 
AnswerRe: Sql Timeout Error Pin
rmhewa20-Dec-05 20:10
rmhewa20-Dec-05 20:10 
GeneralRe: Sql Timeout Error Pin
Colin Angus Mackay20-Dec-05 22:51
Colin Angus Mackay20-Dec-05 22:51 
QuestionCrystal Reports in C# Pin
rmhewa20-Dec-05 19:07
rmhewa20-Dec-05 19:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.