Solved

Reorder Array Control Index

Posted on 2002-06-05
7
305 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses
Course of the Month3 days, 18 hours left to enroll

630 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