Click here to Skip to main content
15,890,557 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Setting properties using variables Pin
Dave Murray2-Sep-04 4:08
Dave Murray2-Sep-04 4:08 
GeneralRe: Setting properties using variables Pin
Dave Kreskowiak2-Sep-04 4:41
mveDave Kreskowiak2-Sep-04 4:41 
Generalwindows explorer Pin
Anonymous1-Sep-04 15:27
Anonymous1-Sep-04 15:27 
GeneralRe: windows explorer Pin
Charlie Williams1-Sep-04 15:46
Charlie Williams1-Sep-04 15:46 
GeneralRe: windows explorer Pin
DMurray1-Sep-04 15:47
DMurray1-Sep-04 15:47 
GeneralUsing ByRef keyword Pin
Chris Quick1-Sep-04 10:06
Chris Quick1-Sep-04 10:06 
GeneralRe: Using ByRef keyword Pin
Dave Kreskowiak1-Sep-04 10:21
mveDave Kreskowiak1-Sep-04 10:21 
GeneralRe: Using ByRef keyword Pin
Chris Quick1-Sep-04 16:32
Chris Quick1-Sep-04 16:32 
So, is the following idea permitted?

Public Class Form1
   Private Function SaveObject()
          Object.Save()
   End Private
End Class

Public Class Object
    ' ... members, properties and constructors ...

    Public Property DataID as Integer
          ' ... Get and Set the DataID
    End Property

    Public Sub Save()
       Dim DataSaver as New ObjectDataLogic
       DataSaver.Save(Me)
    End Sub
End Class

Public Class ObjectDataLogic
    ' ... members, properties and constructors ...
    Public Sub Save(ByRef Object as Object)
        ' ... save to the database and return get the new ID
        Object.DataID = NewID   
    End Public     
End Class


I want the data logic and the business object on two seperate tiers. Would this be considered good design or is there a better way to accomplish this? Any issues that could arise from this approach?

I am seeking any additional resources that are out there!

Thanks!
GeneralRe: Using ByRef keyword Pin
Steven Campbell1-Sep-04 16:44
Steven Campbell1-Sep-04 16:44 
GeneralRe: MS MaskEditBox 6.0 Help Me! Pin
Kunal Mukherjee1-Sep-04 8:45
Kunal Mukherjee1-Sep-04 8:45 
GeneralRe: MS MaskEditBox 6.0 Help Me! Pin
Dave Kreskowiak1-Sep-04 10:27
mveDave Kreskowiak1-Sep-04 10:27 
GeneralWorking with classes and data access logic... Pin
Chris Quick1-Sep-04 6:09
Chris Quick1-Sep-04 6:09 
GeneralRe: Working with classes and data access logic... Pin
Steven Campbell1-Sep-04 7:53
Steven Campbell1-Sep-04 7:53 
GeneralRe: Working with classes and data access logic... Pin
Chris Quick2-Sep-04 2:51
Chris Quick2-Sep-04 2:51 
GeneralRe: Working with classes and data access logic... Pin
Steven Campbell2-Sep-04 3:36
Steven Campbell2-Sep-04 3:36 
GeneralQuerying AD for members of a group Pin
Anonymous1-Sep-04 5:34
Anonymous1-Sep-04 5:34 
GeneralRe: Querying AD for members of a group Pin
Anonymous1-Sep-04 19:53
Anonymous1-Sep-04 19:53 
GeneralPrint PDF file Pin
megadith1-Sep-04 5:08
megadith1-Sep-04 5:08 
GeneralRe: Print PDF file Pin
Dave Kreskowiak1-Sep-04 6:17
mveDave Kreskowiak1-Sep-04 6:17 
GeneralDetecting a remote user Pin
dataman91-Sep-04 2:20
dataman91-Sep-04 2:20 
GeneralRe: Detecting a remote user Pin
Dave Kreskowiak1-Sep-04 8:16
mveDave Kreskowiak1-Sep-04 8:16 
GeneralISS... Help :( Pin
Ranoush1-Sep-04 2:08
Ranoush1-Sep-04 2:08 
GeneralRe: ISS... Help :( Pin
Dave Kreskowiak1-Sep-04 6:19
mveDave Kreskowiak1-Sep-04 6:19 
GeneralRe: ISS... Help :( Pin
Ranoush1-Sep-04 11:26
Ranoush1-Sep-04 11:26 
GeneralRe: ISS... Help :( Pin
Dave Kreskowiak2-Sep-04 4:28
mveDave Kreskowiak2-Sep-04 4:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.