Results 1 to 6 of 6

Thread: Really quick question!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Posts
    225
    How do you make like a type of... I dunno what you call it, that's the problem. ;-) I forgot!

    It's like a custom defined '.This' thing which you can use... how do you use them? (the basics)

    Thanks,

    -Git

  2. #2
    Lively Member
    Join Date
    May 2000
    Location
    Norway
    Posts
    112
    Do you mean Classes?

    ie:
    Code:
    Dim myC as new myClass
    myC.text="Hello all"
    myC.Alert
    'where myC.Alert is a function that outputs the myC.text

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Posts
    225
    Not quite.

    I mean say if you have a string called 'Hello'.

    How can you make your own custom variable? eg.

    Hello.Custom

    Thanks,

    -Git

  4. #4
    Guest
    you mean a UDT?

    Code:
    Private Type MyType
        My1 As String
    End Type
    Dim MyMy As MyType
    
    Private Sub Form_Load
         MyMy.My1 = "Hello"
    End Sub

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Posts
    225
    Yup, that's it. Thanks!

    Cyas.

    -Git

  6. #6
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662
    BTW, The MS term for that is User-Defined Type.

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