Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Cecil Champenois
  Where is Cecil Champenois?
 Little Elm
 Texas - United States
 Cecil Champenois
 Tags
Subject: Loop through and rename labels
Thread ID: 416077 Message ID: 416077 # Views: 56 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Sunday, December 21, 2014 12:23:21 AM         
   


If you want to name labels or reference labels with a number, for example, LABEL1, LABEL2, LABEL3, etc., how would you do this? I do not mean initially naming them. I want to refer to a set of 10 labels in a loop and reference them.

I've got this label, lblTruckNumber1. I want to be able to refer to each label, and there are 10 of them, while going through a FOR loop. How do I add an incremental number to the end of each label name as it loops?

Cecil Champenois, Jr.

ENTIRE THREAD

Loop through and rename labels Posted by Cecil Champenois @ 12/21/2014 12:23:21 AM
RE: Loop through and rename labels Posted by Ali Koumaiha @ 12/21/2014 4:02:23 AM
RE: Loop through and rename labels Posted by Cecil Champenois @ 12/21/2014 4:31:08 AM
RE: Loop through and rename labels Posted by Stefan Wuebbe @ 12/21/2014 7:09:36 AM
RE: Loop through and rename labels Posted by Ali Koumaiha @ 12/21/2014 12:34:19 PM
RE: Loop through and rename labels Posted by Cecil Champenois @ 12/21/2014 4:18:53 PM
RE: Loop through and rename labels Posted by Mike Yearwood @ 12/22/2014 3:35:51 PM
RE: Loop through and rename labels Posted by Cecil Champenois @ 12/22/2014 4:58:32 PM
RE: Loop through and rename labels Posted by Victor Espina @ 12/23/2014 1:05:58 AM
RE: Loop through and rename labels Posted by Bernard Bout @ 12/24/2014 4:19:23 AM