>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
>
Iain;
After I was given my first VB project, it took a while to get over the shock of how much code is required to do anything. Next comes syntax differences between VFP and VB. That is not too big of a deal after a while. One suggestion is to use the following at the beginning of your General Declarations:
Option Explicit
That line of code will prevent you from using a Dim with the same name more than once. When you fire the form (F5) you will get a compile error message box with the offending line of code highlighted should you re-use the name. That can save you time and lost hair.
It is hard to not criticize VB as a tool to access and manipulate data, after using Visual FoxPro. What is important to me is that I was paid to do it and was successful. It is now just another tool in my collection.
Tom