Solved

Reorder Array Control Index

Posted on 2002-06-05
7
299 Views
Last Modified: 2008-01-09
Hi all,
I want to reorder the index of array control, Is there any fastest way to reorder these array controls?


Regards,
Iskandar
0
Comment
Question by:karnaini
7 Comments
 
LVL 39

Expert Comment

by:appari
ID: 7055817
do you mean reorder index of control array?
if yes,
i think no easy way. i follow these steps.

1. rename control name to something else , ex. txtEntry to txtEntry1
2. in the order i want select the control and rename it to old name and chenge index to required index.

but take care of index values referenced in code.
0
 
LVL 3

Expert Comment

by:MCummings111400
ID: 7056219
If you are in design mode, the easiest way to reorder them is to select each control in the order that you want, then change the index property, VB will reorder the controls with higher index automatically
0
 
LVL 3

Accepted Solution

by:
MCummings111400 earned 50 total points
ID: 7056221
This can also be done in code, but it requires the use of the VB IDE Extension Libraries, and writing an adding to do it.

Can it be done at RunTime? No that I am aware of. All design time controls are read-only at run-time
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 22

Expert Comment

by:rspahitz
ID: 7056843
At run-time, you can load a control array item with any index that you choose (as long as it doesn't exist already) and it will take on the characteristics of the "default" control (usually index 0) after which you can customize it, for example, to match another control before you delete the other control.

0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7057466
What i did in the past was change the last index to array to the highest one that i needed. After that i did renumber the index from there to down. There was collision sometimes.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7858102
Hi karnaini,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept MCummings's comment(s) as an answer.

karnaini, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 8001724
Comment from expert accepted a answer

Computer101
E-E Admin
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question