Results 1 to 2 of 2

Thread: object creation

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    1

    object creation

    how do you create an object [in vb 6] using just code? i know there's a way, please respond.

  2. #2
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051
    The easiest way is to create one at design time, with an index of 0. When you want to create a new one do something like this

    VB Code:
    1. Load MyObject(MyObject.Count)
    2. MyObject(MyObject.Count-1).Visible = True
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width