Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A VFP users not use to VB commands needs help =(
Message
 
 
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00568044
Message ID:
00568061
Views:
23
This message has been marked as a message which has helped to the initial question of the thread.
>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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform