Solved

the limit of VB

Posted on 1998-11-28
5
135 Views
Last Modified: 2010-08-05
Is VB possible to write a program include an array such that each array represent a pre-designed command button, and when the whole array is counting the indivdual button would be shown in the appropreiate area?
i.e. array counting ... 1,2,3,.....  
command button(1) displaying....
command button(2) displaying....
command button(3) displaying.... and so on. possible?
0
Comment
Question by:makkw102598
  • 3
  • 2
5 Comments
 
LVL 12

Accepted Solution

by:
mark2150 earned 80 total points
Comment Utility
Sure you just have to define a control array. You then keep adding new elements as the array grows.

M

0
 
LVL 1

Author Comment

by:makkw102598
Comment Utility
Thanks for answering.
because my main problem is that I have designed a form which includes command buttons, labels, text, and so on.
But without making 100s of these forms of the same design.
can I put the first design in to the first array, and when the user has entered the number of that forms it is going to be needed then count from 1 to x so that it will generate x number of the same design of forms, hence to be able to store each of these forms into each of those array?
i.e.
storage is  designform1  
user enter 3
designform_1 display...
designform_2 display...
designform_3 display...
myarrayform(1) is designform_1.
myarrayform(2) is designform_2.
myarrayform(3) is designform_3. and so on
if the user enter say.. 30
there will be 30 of these e.g. ..... designform_30 display ........... myarrayform(30) is designform_30........
But I have only design one form.
and it will generate so many forms ( of the exact design) that the user entered. possible if possible.
How should the online of the code be like?
Thanks for helping.

0
 
LVL 1

Author Comment

by:makkw102598
Comment Utility
Sorry about the ironical phrase  above.
Can I put the first design in to the first array, and when the user has entered the number of that forms he needed, the computer counts from 1 to x so that it will generate x number of the same design of forms, hence to be able to store each of these forms into each of those array?
Possible?
If possible, how should the outline of the code be like?
Is the better English? thanks
0
 
LVL 12

Expert Comment

by:mark2150
Comment Utility
Why create 100's of more-or-less identical forms? Have *one* form that you use as a template. From a main module load the form into memory and then start filling in the options. You'll only have one form to track that can be as different at you need it to be. 'seed' the form with control arrays that only have one element defined. That way you can add an additional element to the control array and a new button or text box appears. Once you have the entire form updated, *THEN* show it.

M

0
 
LVL 1

Author Comment

by:makkw102598
Comment Utility
Thanks for your answer.
Is that possible for me to send you the code that I have done so far, thru the email? I don't know how to describe it thru typing.

0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now