Results 1 to 5 of 5

Thread: data type

  1. #1

    Thread Starter
    Frenzied Member markman's Avatar
    Join Date
    Nov 2000
    Location
    Florida.
    Posts
    1,197
    How can you reate a data type, such as Form or TextBox?
    example:
    Code:
    Dim Object_To_Create As myObjectType
    Set Object_To_Create As New myObjectType
    Object_To_Create.Show
    This data type should be a kind of ocx. Any ideas?
    retired member. Thanks for everything

  2. #2
    Guest
    Code:
    Dim txt As TextBox
    txt.Text = "New TextBox"
    txt.ForeColor = vbBlue

  3. #3

    Thread Starter
    Frenzied Member markman's Avatar
    Join Date
    Nov 2000
    Location
    Florida.
    Posts
    1,197

    ummm...

    I meant for my own ocx, a new data type
    retired member. Thanks for everything

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Use createobject


    Set newobject = CreateObject ( "Yourproject.Yourcontrol" )
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5

    Thread Starter
    Frenzied Member markman's Avatar
    Join Date
    Nov 2000
    Location
    Florida.
    Posts
    1,197
    You said the CreateObject() had a Yourproject.YourControl
    What is this?
    I hope this isn't a question as stupid as it sounds!
    retired member. Thanks for everything

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