![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Sep 2005
Posts: 4
Rep Power: 0
![]() |
Help creating an array
I copied and pasted a label and apparently I'm meant to be asked if i wish to create an array but I haven't and can't find anything on google to help me with this, can anyone help out please?
|
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 3
![]() |
Ok, you copied the label the label's name remained the same. The program asked you if you want to make an array (more than one items with the same name which everyone has a unique index) so if you do not need this just say no and vb will rename your label.
To avoid that message create you controls without copying and pasting them. |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Sep 2005
Posts: 4
Rep Power: 0
![]() |
Thanks it actually had a caption and as soon as i removed it it asked for an array.. I'm obviously a beginner and know some basics but I'm really struggling with one part of my project..
the lines "Sub picCover Click (Index as Integer)" and "Static FirstCard As Integer," are both being rejected due to syntax errors and as the variable isn't defined but i've copied the code exactly and it should work but it still isn't.. can someone help me on how to fix this? |
|
|
|
|
|
#4 |
|
Expert Programmer
|
Say you have a Label (any other control will do) and you copy and paste it, it will ask if you want to create a control array. If you select yes, it will rename the original Lable to LabelName(0) and the one you copied an pasted to LabelName(1). If you proceed to paste more they will be LabelName(currentLabelIndexNumber += 1). If this is unclear i have found this link on google to help you out: http://www.officecomputertraining.co...ges/page22.asp
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#5 |
|
Professional Programmer
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 3
![]() |
Can you post all your code because I do not understand you perfectly?
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|