Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use Type... End Type

Status
Not open for further replies.

musalk

Programmer
Oct 30, 2001
33
0
0
DK
i cant find out how to use type in vb like in qb
eg:

Type te
test as string * 20
number as intger
test2 as string * 52
End Type
dim test as te

How to use that in vb?????????? NeoAndresen
ComputerTech/Programmer
 
This is correct:


Private Type TypeSample
Var1 As Currency
Var2 As Long
Var3 As String
End Type

Sub hello()
Dim T As TypeSample
T.Var1 = "123"
T.Var2 = "1234"
T.Var3 = "Right!!!"
End Sub
 
Thanks NeoAndresen
ComputerTech/Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top