Results 1 to 5 of 5

Thread: A few questions...

  1. #1

    Thread Starter
    Hyperactive Member TiPeRa's Avatar
    Join Date
    Apr 2001
    Location
    In between
    Posts
    464

    A few questions...

    Just a few question, thought I save forum space by posting them together.

    1. I want to do something like this but don't know how to:
    dim text1.text as new myobject
    where text1 contain the name of the new variable.

    2. In a class module, how do you get the name of the object just created?

    TIA
    -TiPeRa
    Last edited by TiPeRa; Jul 1st, 2001 at 07:08 AM.
    W#Ć€V€® W¦|| ߀ W¦|| ߀, ÄÑÐ †#€®€ ¦§ ÑÖ†#¦Ñ6 ¥Öµ ©ÄÑ ÐÖ ÄßÖµ† ¦†, §Ö §¦† ßÄ©K, ®€|ÄX ÄÑÐ |€† ¦† #ÄÞÞ€Ñ.
    (Whatever will be will be, and there is nothing you can do about it, so sit back, relax and let it happen.)

  2. #2

  3. #3

    Thread Starter
    Hyperactive Member TiPeRa's Avatar
    Join Date
    Apr 2001
    Location
    In between
    Posts
    464
    I guess I'll have to use an array then. What about question 2?
    W#Ć€V€® W¦|| ߀ W¦|| ߀, ÄÑÐ †#€®€ ¦§ ÑÖ†#¦Ñ6 ¥Öµ ©ÄÑ ÐÖ ÄßÖµ† ¦†, §Ö §¦† ßÄ©K, ®€|ÄX ÄÑÐ |€† ¦† #ÄÞÞ€Ñ.
    (Whatever will be will be, and there is nothing you can do about it, so sit back, relax and let it happen.)

  4. #4

  5. #5
    Megatron
    Guest
    Regarding your first question, if what you're trying to do is add controls at run-time, you could use the following method:
    VB Code:
    1. 'Adds a Label (called Label1) at runtime
    2. Controls.Add "VB.Label", "Label1"
    3. Me!Label1.Move 0, 0
    4. Me!Label1.Caption = "NewLabel"
    5. Me!Label1.Visible = True

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