+ Reply to Thread
Results 1 to 2 of 2

Code Error - Still at work and need help!

  1. #1
    Registered User
    Join Date
    01-14-2004
    Posts
    34

    Code Error - Still at work and need help!

    I'm trying to get this to work with a CSV file and for some reason it doesn't work? Can anyone help? Heres the code:

    Private Function CreateFormData(ByRef Fields As Variant, ByVal FormDataDelimiter As String, ParamArray Values() As Variant)
    Dim FormData As String
    FormData = FormDataDelimiter & vbCrLf

    For i = 0 To UBound(Fields)
    FormData = FormData & "Content-Disposition: form-data; name=""" & Fields(i) & """" & vbCrLf & vbCrLf & Values(i) & vbCrLf & FormDataDelimiter & vbCrLf
    Next i

    CreateFormData = FormData
    End Function

  2. #2
    Jim Cone
    Guest

    Re: Code Error - Still at work and need help!

    http://www.cpearson.com/excel/newposte.htm
    --
    Jim Cone
    San Francisco, USA
    http://www.realezsites.com/bus/primitivesoftware


    "alexm999"
    wrote in message...
    I'm trying to get this to work with a CSV file and for some reason it
    doesn't work? Can anyone help? Heres the code:

    Private Function CreateFormData(ByRef Fields As Variant, ByVal
    FormDataDelimiter As String, ParamArray Values() As Variant)
    Dim FormData As String
    FormData = FormDataDelimiter & vbCrLf

    For i = 0 To UBound(Fields)
    FormData = FormData & "Content-Disposition: form-data; name="""
    & Fields(i) & """" & vbCrLf & vbCrLf & Values(i) & vbCrLf &
    FormDataDelimiter & vbCrLf
    Next i

    CreateFormData = FormData
    End Function
    --
    alexm999


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1