![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
PFO Founder
![]() ![]() |
ok here is the code i have:
frmPartNum.lblUse1.Caption = strOWArray(1)
frmPartNum.lblUse2.Caption = strOWArray(2)
frmPartNum.lblUse3.Caption = strOWArray(3)
frmPartNum.lblUse4.Caption = strOWArray(4)
frmPartNum.lblUse5.Caption = strOWArray(5)
frmPartNum.lblUse6.Caption = strOWArray(6)
frmPartNum.lblUse7.Caption = strOWArray(7)
frmPartNum.lblUse8.Caption = strOWArray(8)
frmPartNum.lblUse9.Caption = strOWArray(9)
frmPartNum.lblUse10.Caption = strOWArray(10)
frmPartNum.lblUse11.Caption = strOWArray(11)
frmPartNum.lblUse12.Caption = strOWArray(12)
frmPartNum.lblUse13.Caption = strOWArray(13)
frmPartNum.lblUse14.Caption = strOWArray(14)
frmPartNum.lblUse15.Caption = strOWArray(15)
frmPartNum.lblUse16.Caption = strOWArray(16)now this would be alot better if i could do a simple little loop on it that way i wouldnt have to have the code look like this even tho it works. so i was wondering if it is possible to make the lbluse* name something so that i can change where the * is?? is this even possible
__________________
BIG K aka Kyle Programming Forums Kyle K Online Please do not PM or email me programming questions. Post them in the forums instead. |
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() |
you can make a control array, that's what you need.
while your in forum view just select the forum item that you want to amke an array of and right click and select copy, then paste. do that till you have 16 of em. then you can loop through em later in the code. like this: for x = 0 to 15 step 1
thing = lblUse[x]
MsgBox thing
Next x
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#3 |
|
PFO Founder
![]() ![]() |
thanks
![]()
__________________
BIG K aka Kyle Programming Forums Kyle K Online Please do not PM or email me programming questions. Post them in the forums instead. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|