|
-
Aug 21st, 2000, 03:08 AM
#1
Thread Starter
Addicted Member
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
-
Aug 21st, 2000, 03:20 AM
#2
Lively Member
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
-
Aug 21st, 2000, 03:27 AM
#3
Thread Starter
Addicted Member
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
-
Aug 21st, 2000, 03:28 AM
#4
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
-
Aug 21st, 2000, 03:34 AM
#5
Thread Starter
Addicted Member
Yup, that's it. Thanks! 
Cyas.
-Git
-
Aug 21st, 2000, 03:40 AM
#6
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|