|
-
Feb 13th, 2009, 10:58 AM
#1
Thread Starter
New Member
[RESOLVED] Quick silly vb question!
First of all , sorry to waste a thread on this!
I can't remember how to do this...
when you dim something so in your code you can do it like..
dim item(size as string, link as string, value as string)
item.size = blah
item.link = blah
item.value = blah
Basicly so when you put a . it will show you the list of things you dimmed
-
Feb 13th, 2009, 11:10 AM
#2
Re: Quick silly vb question!
Probably You are talkin about : Type as:
Code:
Public Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Then, You can declare any other variable as the defined Type
And when You write XXX. appears Left, Top, Right,Bottom
-
Feb 13th, 2009, 11:12 AM
#3
Re: Quick silly vb question!
Wouldn't that be a structure, you dim your structure and then dim a variable as that structure and go from there?
-
Feb 13th, 2009, 11:13 AM
#4
Re: Quick silly vb question!
Looks like a Type expression
Code:
Type myitem
size As String
link As String
value As String
End Type
Dim item As myitem
'
'
Privaye Sub SomeSub()
item.size = blah
'
'
End Sub
-
Feb 13th, 2009, 11:17 AM
#5
Thread Starter
New Member
Re: Quick silly vb question!
thanks guys thats what i needed
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
|