Results 1 to 4 of 4

Thread: User Defined type question

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2001
    Posts
    14

    User Defined type question

    Public actor() As actorbase
    Type actorbase

    num As Integer
    pos As String
    model As New Actor8
    End Type

    ok theres the basic layout, now my question is can i have a string bound directly to the actorbase root....

    in other words.

    actor(0)="abcd" 'this returns an error

  2. #2
    Types don't work that way. Instead:
    VB Code:
    1. Public Type FooType
    2.     FooString As String
    3. End Type
    4.  
    5. Public Foo As FooType
    6.  
    7. ' and somewhere else
    8. Msgbox Foo.FooString

  3. #3
    Frenzied Member markman's Avatar
    Join Date
    Nov 2000
    Location
    Florida.
    Posts
    1,197
    its got to be possible. Notice when you declare a workspace:
    Din wrksp as Workspace
    wrksp = 'something
    retired member. Thanks for everything

  4. #4

    Thread Starter
    New Member
    Join Date
    Dec 2001
    Posts
    14
    well its not a huge problem, I can run my ubound search on this type another way.....

    this way would have just been cleaner and quicker..

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