Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 22nd, 2005, 6:13 AM   #1
ManaX
Newbie
 
Join Date: Sep 2005
Posts: 4
Rep Power: 0 ManaX is on a distinguished road
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?
ManaX is offline   Reply With Quote
Old Sep 22nd, 2005, 7:13 AM   #2
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 3 ivan is on a distinguished road
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.
ivan is offline   Reply With Quote
Old Sep 22nd, 2005, 8:14 AM   #3
ManaX
Newbie
 
Join Date: Sep 2005
Posts: 4
Rep Power: 0 ManaX is on a distinguished road
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?
ManaX is offline   Reply With Quote
Old Sep 22nd, 2005, 10:36 AM   #4
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
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.
coldDeath is offline   Reply With Quote
Old Sep 22nd, 2005, 11:45 AM   #5
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 3 ivan is on a distinguished road
Can you post all your code because I do not understand you perfectly?
ivan is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:49 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC