Results 1 to 8 of 8

Thread: passing data in n-tier apps

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    5

    passing data in n-tier apps

    Hi,

    What is the best way to pass BIG data across machine/process boundaries in an n-tier COM application???
    (Objects, Strings, UDTs, Arrays....)????

  2. #2
    Swatty
    Guest
    UDT and Objects.

    With objects you can do more.

    You can store extra code in the creatiion/destruction of them.

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    5
    Thanx,

    but I am more concerned with issues such as: performance, network congestion etc???

  4. #4
    New Member
    Join Date
    Jun 2002
    Location
    Stevenage, UK
    Posts
    8
    I've oftern used the 'Dictionary' data type send large amounts of data from app to app.

  5. #5

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    5
    I don't know about the Dictionary data type!!! could you please explain. and where can I get example source code and tutorial on it?

  6. #6
    New Member Fried Egg's Avatar
    Join Date
    Feb 2001
    Location
    Cornwall, UK
    Posts
    12
    Why not just use recordsets?

  7. #7

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    5
    I was thinking of using Recordsets to pass data from the Business layer to the Client Tier on another machine, but I thought the Client Tier should be free from data access code or reference??

  8. #8
    New Member
    Join Date
    Jun 2002
    Location
    Stevenage, UK
    Posts
    8
    You need : \system32\scrrun.dll (Which I'm sure you have)

    Make a reference to 'Microsoft Scripting Runtime'

    Private Sub Form_Load()

    Dim dicTemp As New Scripting.Dictionary
    Dim col1 As New Collection
    Dim strZ As String
    Dim lngY As Long
    Dim intX As Integer
    Dim objFSO As New FileSystemObject

    intX = 32
    lngY = 1000000
    strZ = "ABC"
    Call col1.Add("Adele", "32")
    Call col1.Add("Tim", "23")
    Call col1.Add("Alex")
    Call col1.Add("Jade")

    Call dicTemp.Add("No1", intX)
    Call dicTemp.Add("No2", lngY)
    Call dicTemp.Add("No3", strZ)
    Call dicTemp.Add("No4", col1)
    Call dicTemp.Add("Object", objFSO)

    MsgBox dicTemp.Item("No1") & vbNewLine & _
    dicTemp.Item("No2") & vbNewLine & _
    dicTemp.Item("No3") & vbNewLine & _
    dicTemp.Item("No4").Item("32") & vbNewLine & _
    dicTemp.Item("No4").Item("23") & vbNewLine & _
    dicTemp.Item("No4").Item(3) & vbNewLine & _
    dicTemp.Item("No4").Item(4) & vbNewLine & _
    TypeName(dicTemp.Item("Object"))

    End Sub


    Sorted .... hope this helps.

    I use it as a container to cut down on messy method signatures that need loads of parameters passed in.

    BBB

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width