Currently we have a VB6 application that uses a class module for holding configuration setting for the app(ie nextinvno,nextcustno,etc). This RS and class is kept open the whole time the app is open. I am toying with moving this to a VB.Net app and wondering what is the best way to handle this with the move.
I've included a little bit of our current code as an example...
Am I going to have change to set the Properties upon startup and also write my own update when something changes or can this remain relatively the same.
TIA
Dave
I've included a little bit of our current code as an example...
VB.NET:
Private mvarNextOrderNumber As Long
Private WithEvents rsConfig As ADODB.Recordset
Public Property Let NextOrderNumber(ByVal vData As Long)
1 rsConfig!nextorderno = vData
End Property
Public Property Get NextOrderNumber() As Long
NextOrderNumber = rsConfig!nextorderno
End Property
Public Sub db_GetConfig()
1 rsConfig.Open "exec vts_GetCONFMAST", connSQL, adOpenDynamic, adLockOptimistic
End Sub
Private Sub Class_Initialize()
1 Set rsConfig = New ADODB.Recordset
End Sub
Public Sub Update()
1 rsConfig.Update
End Sub
Am I going to have change to set the Properties upon startup and also write my own update when something changes or can this remain relatively the same.
TIA
Dave