Hello
Here is the sample code
Declare in the General section of the form or in the
module.
Public Type struct_CustomerDetails
str_CustomerName as String
int_CustomerAge as Integer
str_CustomerAddress as String
str_CustomerEmail as String
End Type
and to use it in the code...
Dim stCD as struct_CustomerDetails
stCD.str_CustomerName = "Cust Name"
stCD.int_CustomerAge = 99
stCD.str_CustomerAddress = "Milkyway"
stCD.str_CustomerEmail = "
[email protected]"
Msgbox stCD.str_CustomerName
You can use this structure as the way you want as you
use a varible and structure is user-defined varible.
Hope this helps and gives you some idea.
With Regards,
Raghavendra Mudugal