|
-
Jan 11th, 2002, 06:09 PM
#1
Type(?)
In what case can i use the Type statment and how can i use it?
I have 3 strings that i need a function to search in a string...
Can i put them under Type? like this:
VB Code:
Public Type Tags
ert1 As String
ert2 As String
PNM As String
End Type
Dim Tag as Tags
I'm not sure, but i think this code declairs a var called Tag as Tags (value options are the ert1, ert2, PNM)
Is that right?
-
Jan 11th, 2002, 06:17 PM
#2
Need-a-life Member
I don't think you understand what a Type variable is. Or I'm not getting at all what you're saying. Check this example.
VB Code:
Private Type UsrData
Dim sName As String
Dim sLastName As String
Dim iAge As Integer
End Type
Private usr as UsrData
Private Sub ShowData()
Debug.Print "Name: " & usr.sName
Debug.Print "Last Name: " & usr.sLastName
Debug.Print "Age: " & usr.iAge
End Sub
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
Jan 11th, 2002, 06:27 PM
#3
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
|