Control lists of objects? 
Author Message
 Control lists of objects?

How can I create an array of pointers to objects in VB4?  I have
dozens of similar objects that I want to control, but don't want to
hardcode each name in the commands.  

Thanks in advance!!
Lee (new to VB4)



Tue, 01 Sep 1998 03:00:00 GMT  
 Control lists of objects?

Quote:
>How can I create an array of pointers to objects in VB4?  I have
>dozens of similar objects that I want to control, but don't want to
>hardcode each name in the commands.  

Maybe

Dim array() As Control
Set array(index) = Controlname

will work.


--
Newbiehood is not a period of time, it's a way of life.

http://www.sn.no/~balchen/
ftp://ftp.sn.no/user/balchen/



Tue, 01 Sep 1998 03:00:00 GMT  
 Control lists of objects?
Quote:

>  How can I create an array of pointers to objects in VB4?  I have
>  dozens of similar objects that I want to control, but don't want to
>  hardcode each name in the commands.  

>  Thanks in advance!!
>  Lee (new to VB4)

Use the Collection Object

When you add an object to it, that is exactly what you get, a pointer to an object.



Sat, 05 Sep 1998 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Object references in List and Tree Controls

2. Drop List in a List VIew or a Data Grid control

3. Determining Object Types in Bound Object Control

4. Image Control Supplied By Image List Control

5. Keeping lines with controls while dragging the object - grouping objects

6. Tree control / List view in ONE control?

7. need a list box control like oletools listbox control

8. Database Object Listing

9. Custom Form method not listed in Object Browser

10. List Access Objects based on Date Last Modified

11. Need help Listing Object Description Properties

12. How do I show a filtered list of items in the Outlook Explorer Object

 

 
Powered by phpBB® Forum Software