|
-
Mar 9th, 2008, 08:22 PM
#1
Thread Starter
Junior Member
-
Mar 9th, 2008, 08:33 PM
#2
Re: Trying to read into ID3 Tag
Crash? Or an error something like "User-Defined type not defined"? (forgot what the actual error is).
The tutorial should have a declaration of that type.
vb Code:
Type taginfo 'members here End Type
You will need to paste this into the general declarations of your code. What is the link to the tutorial you are reading?
-
Mar 9th, 2008, 08:53 PM
#3
Thread Starter
Junior Member
Re: Trying to read into ID3 Tag
http://www.developerfusion.co.uk/show/62/3/
but I see now how the code works, but it is the first time that I have seen a user defined type used. What is the purpose?
-
Mar 9th, 2008, 08:57 PM
#4
Re: Trying to read into ID3 Tag
 Originally Posted by VBNewbieReady2Learn
To create your own data type...sometimes string, integer, double, etc. is not what we need. Sometimes we need more values:
vb Code:
Type Person
strFirstName As String
strLastName As String
strEmail As String
strPhoneNumber As String
'etc...
End Type
Private udtPerson As Person
Private Sub Form_Load()
With udtPerson
.strFirstName = "Billy"
.strLastName = "Bob"
.strPhoneNumber = "1-555-555-5555"
End With
End Sub
There are a lot of things you can do with UDTs...create arrays of them, save them directly to disk, etc.
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
|