Results 1 to 5 of 5

Thread: Loading objects

  1. #1

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Unhappy

    Hey,

    How can I load an object into another? In my project I first load a picture box and then I want to load labels which are in this box... I played around with the .Parent and .Container -properties but... on idea .

    Code:
    Load Picture1(1)
    Load Label1(1)
    
    'Doesn't work :(
    'Label1(1).Container = Picture1(1)
    Any suggestions?

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Boulder, Colorado, USA
    Posts
    325
    You have to use 'Set' Like so:

    Code:
      Load Picture1(1)
      Load Label1(1)
      
      Set Label1(1).Container = Picture1(1)
    -Shickadance

  3. #3

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Oh, a pointer... ok

    Thanks alot!

  4. #4
    Junior Member
    Join Date
    Mar 2000
    Location
    Ede, Gelderland, Nederland
    Posts
    26
    This is the function: 'CreateObject' bur i don't now how is works.
    LauPro

  5. #5

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Thanks but the Container property is exactly what I was looking for... just forgot to use 'set'

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