>Hi All,
>
>I have been given a VB project to look into, and from the first form I am having a major problem.
>
>below is where I am having a prob, the dims I know but the set and New is getting to me.
>
>
> Dim sPasscode As String
> Dim iI As Integer
> Dim tUser As SW2KSecurityData.tUser
> 'Set variables
> Set clsUtility = New CUtilityData
> Set clsPasscode = New CPasscode
> Set clsSecurity = New CSecurityData
>
Ian,
"Set" is used to assign object variables. Non-object variables can be assigned by using = without the use of Set.
"New" is used in lieu of the CreateObject() function. It's just another way to create an instance of the object.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao