Results 1 to 3 of 3

Thread: How do you create a new type?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Posts
    79

    How do you create a new type?

    In VB6 I think you could create a new custom type so you could do:

    Code:
    Public Type TYPENAME
    .Parameter1 as String
    .Parameter2 as String
    .Parameter3 as String
    End Type
    When I try this in VB.NET it doesnt recognize that type of statement, how do you create a custom type in VB.NET?

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    The closest thing now is a structure:
    VB Code:
    1. Public Structure TYPENAME
    2.  Public Parameter1 as String
    3.  Public Parameter2 as String
    4.  Public Parameter3 as String
    5. End Structure

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Posts
    79
    Thx a million

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