Click here to Skip to main content
11,496,146 members (576 online)
   

C#

The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.
 
GeneralRe: Design Question Pin
Rahul Rajat Singh16-Nov-12 0:35
memberRahul Rajat Singh16-Nov-12 0:35 
GeneralRe: Design Question Pin
BobJanova16-Nov-12 1:09
memberBobJanova16-Nov-12 1:09 
AnswerRe: Design Question Pin
SledgeHammer0116-Nov-12 10:53
memberSledgeHammer0116-Nov-12 10:53 
GeneralRe: Design Question Pin
TheGermoz16-Nov-12 11:06
memberTheGermoz16-Nov-12 11:06 
AnswerRe: Design Question Pin
Clifford Nelson16-Nov-12 10:53
memberClifford Nelson16-Nov-12 10:53 
QuestionBackground worker thread Pin
MAW3015-Nov-12 15:54
memberMAW3015-Nov-12 15:54 
AnswerRe: Background worker thread Pin
DaveyM6915-Nov-12 19:51
mentorDaveyM6915-Nov-12 19:51 
QuestionArray, Struct, Class??? I'm so confused.... Pin
KKW_acd15-Nov-12 7:29
memberKKW_acd15-Nov-12 7:29 
Here's what I've got:
public struct ItmAray
{
    public string FieldName;
    public int FieldIndex;
}
 
public struct dtlst
{
    public ItmAray[] ItemArray = new ItmAray[128];
}
 
public dtlst[] DataList = new dtlst[128];

This is what I want:
DataList[x].ItemArray[y].FieldName = clbText;
DataList[x].ItemArray[y].FieldIndex = int.Parse(a);

This is what I'm getting:
an error: "cannot have instance field initializers in structs" from the dtlst structure:
public ItmAray[] ItemArray = new ItmAray[128];

I believe the problem is the righthand side of the line.
But I can't figure out how to fix it.

Thanks!
AnswerRe: Array, Struct, Class??? I'm so confused.... [modified] Pin
DaveyM6915-Nov-12 7:55
mentorDaveyM6915-Nov-12 7:55 
GeneralRe: Array, Struct, Class??? I'm so confused.... Pin
KKW_acd15-Nov-12 10:03
memberKKW_acd15-Nov-12 10:03 
AnswerRe: Array, Struct, Class??? I'm so confused.... Pin
DaveyM6915-Nov-12 20:02
mentorDaveyM6915-Nov-12 20:02 
GeneralRe: Array, Struct, Class??? I'm so confused.... Pin
Richard MacCutchan16-Nov-12 1:02
mvpRichard MacCutchan16-Nov-12 1:02 
AnswerRe: Array, Struct, Class??? I'm so confused.... Pin
Richard MacCutchan15-Nov-12 8:06
mvpRichard MacCutchan15-Nov-12 8:06 
AnswerRe: Array, Struct, Class??? I'm so confused.... Pin
BobJanova16-Nov-12 1:16
memberBobJanova16-Nov-12 1:16 
QuestionWind Chill Automation with C# application Pin
omisheikh15-Nov-12 7:03
memberomisheikh15-Nov-12 7:03 
AnswerRe: Wind Chill Automation with C# application Pin
jschell15-Nov-12 9:12
memberjschell15-Nov-12 9:12 
GeneralRe: Wind Chill Automation with C# application Pin
omisheikh16-Nov-12 4:25
memberomisheikh16-Nov-12 4:25 
GeneralRe: Wind Chill Automation with C# application Pin
jschell17-Nov-12 6:40
memberjschell17-Nov-12 6:40 
GeneralRe: Wind Chill Automation with C# application Pin
omisheikh18-Nov-12 22:00
memberomisheikh18-Nov-12 22:00 
QuestionAccess mainform while subform is updating Pin
MAW3014-Nov-12 20:01
memberMAW3014-Nov-12 20:01 
AnswerRe: Access mainform while subform is updating Pin
Mycroft Holmes14-Nov-12 20:53
memberMycroft Holmes14-Nov-12 20:53 
AnswerRe: Access mainform while subform is updating Pin
DaveyM6915-Nov-12 1:02
mentorDaveyM6915-Nov-12 1:02 
QuestionGet integer variable from datalist textbox for entry into SQL [modified] Pin
Member 959997514-Nov-12 11:10
memberMember 959997514-Nov-12 11:10 
AnswerRe: Get integer variable from datalist textbox for entry into SQL Pin
rajeshkasani0514-Nov-12 19:34
memberrajeshkasani0514-Nov-12 19:34 
GeneralRe: Get integer variable from datalist textbox for entry into SQL Pin
Member 959997514-Nov-12 23:50
memberMember 959997514-Nov-12 23:50 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 30 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid