dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: passing variable contents

  1. #1
    Guest

    passing variable contents


    does anyone know how to pass variable contents to a function that
    creates a recordset?

  2. #2
    Mingyong Yang Guest

    Re: passing variable contents


    Do you mean something like this:

    Private Sub AddNewData(sData() As String, rsNew As ADODB.Recordset)
    Dim i As Integer
    On Error Resume Next
    rsNew.AddNew
    For i = 0 To mColumn - 1
    rsNew.Fields(i) = "" & sData(i)
    Next i
    rsNew.Update
    rsNew.MoveFirst
    End Sub

    Mingyong Yang, MCP
    -----------------------------
    http://www.foxinternet.net/web2/myang

    <paulballard@altavista.co.uk> wrote:
    >
    >does anyone know how to pass variable contents to a function that
    >creates a recordset?



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center