Click here to Skip to main content
15,890,185 members
Home / Discussions / C#
   

C#

 
AnswerRe: validating a formula Pin
User 665830-Jun-07 3:32
User 665830-Jun-07 3:32 
QuestionDataGrid with checkbox Pin
-spy-30-Jun-07 2:40
-spy-30-Jun-07 2:40 
AnswerRe: DataGrid with checkbox Pin
DanB198330-Jun-07 8:24
DanB198330-Jun-07 8:24 
QuestionInvalid Argument exception? Pin
$uresh $hanmugam30-Jun-07 1:58
$uresh $hanmugam30-Jun-07 1:58 
AnswerRe: Invalid Argument exception? [modified] Pin
Luc Pattyn30-Jun-07 3:07
sitebuilderLuc Pattyn30-Jun-07 3:07 
Questionreading file error Pin
tauras8130-Jun-07 1:41
tauras8130-Jun-07 1:41 
AnswerRe: reading file error Pin
Luc Pattyn30-Jun-07 1:58
sitebuilderLuc Pattyn30-Jun-07 1:58 
Questionarray of type label Pin
Glen Harvy29-Jun-07 23:47
Glen Harvy29-Jun-07 23:47 
Hi,

I have the following hardcoded labels:

this.labelAWeekAgo1.Text = lastWeek.ToString();
this.labelAWeekAgo2.Text = lastWeek.ToString();
..
this.labelAWeekAgo10.Text = lastWeek.ToString();

with each individual label contained within a loop that contains a function with the result generating "lastweek".

How can I code the label variable that changes programatically ie the number at the end of the labels name depending on which pass thru the loop I'm in eg

for i=0 etc
this.labelAWeekAgo[i].Text = lastweek.ToString();








Glen Harvy

AnswerRe: array of type label Pin
Sathesh Sakthivel29-Jun-07 23:53
Sathesh Sakthivel29-Jun-07 23:53 
GeneralRe: array of type label Pin
Glen Harvy30-Jun-07 0:09
Glen Harvy30-Jun-07 0:09 
AnswerRe: array of type label Pin
Luc Pattyn29-Jun-07 23:57
sitebuilderLuc Pattyn29-Jun-07 23:57 
GeneralRe: array of type label Pin
Glen Harvy30-Jun-07 0:11
Glen Harvy30-Jun-07 0:11 
GeneralRe: no Replace !! Pin
Luc Pattyn30-Jun-07 1:14
sitebuilderLuc Pattyn30-Jun-07 1:14 
AnswerRe: array of type label Pin
Guffa30-Jun-07 0:08
Guffa30-Jun-07 0:08 
Questionconsole application creation Pin
DKalepu29-Jun-07 22:52
DKalepu29-Jun-07 22:52 
AnswerRe: console application creation Pin
Christian Graus29-Jun-07 23:01
protectorChristian Graus29-Jun-07 23:01 
GeneralRe: console application creation Pin
DKalepu30-Jun-07 0:13
DKalepu30-Jun-07 0:13 
GeneralRe: console application creation Pin
Luc Pattyn30-Jun-07 0:55
sitebuilderLuc Pattyn30-Jun-07 0:55 
Questionhow to create mdi? Pin
help as an alias29-Jun-07 22:49
help as an alias29-Jun-07 22:49 
AnswerRe: how to create mdi? Pin
Sathesh Sakthivel29-Jun-07 23:55
Sathesh Sakthivel29-Jun-07 23:55 
GeneralRe: how to create mdi? Pin
Christian Graus30-Jun-07 0:07
protectorChristian Graus30-Jun-07 0:07 
GeneralRe: how to create mdi? Pin
help as an alias30-Jun-07 0:26
help as an alias30-Jun-07 0:26 
GeneralRe: how to create mdi? Pin
help as an alias30-Jun-07 0:34
help as an alias30-Jun-07 0:34 
GeneralRe: How to lock record in web application Pin
dabuskol29-Jun-07 22:42
dabuskol29-Jun-07 22:42 
GeneralRe: How to lock record in web application Pin
Bassam Saoud29-Jun-07 22:49
Bassam Saoud29-Jun-07 22:49 

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.