FTP on the PDA

Discussion in 'Questions (Windows Mobile)' started by timsteeman, Nov 26, 2007.

  1. timsteeman

    timsteeman Member Licensed User

    I'm looking for a solution for my ftp problem...
    On the PC everything works fine, But on the PDA not.
    Internet works. Connection is open...

    This is my code;

    Sub Globals
    Dim datumfile
    Dim datum
    Dim csvbestand
    csvbestand=AppPath & "\livaadje.csv"
    End Sub

    Sub App_Start
    frmmain.Show
    Msgbox("1")
    ErrorLabel (errHandler)
    ftp.New1
    Msgbox("2")
    WaitCursor(true)
    ftp.Open("","","")
    Msgbox("3")
    If ftp.IsFTPConnected Then
    If FileExist (csvbestand) Then
    FileDel(csvbestand)
    End If
    Msgbox("4")
    ftp.GetFile("livaadje.csv",csvbestand)
    Msgbox("5")
    WaitCursor(false)
    Msgbox("6")
    ftp.Close
    Msgbox("7")
    Else
    Msgbox("8")
    End If
    Msgbox("9")
    Return
    ErrHandler:
    Msgbox("a")
    End Sub


    On the PC no worry's. On the PDA i come as far as Msgbox("4")
    .
    Please give me a clue!
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    What error do you get if you remove the ErrorLabel?
     
  3. timsteeman

    timsteeman Member Licensed User

    Error message is....

    An error occured on Sub app_start
    Line number: 0
    Error description:
    Error getting File.
    Continue?

    This is on an older PDA (2002), on a newer one (2003 SE) there is no problem.
    -
    Installed Compact framework 1.0
     
  4. Erel

    Erel Administrator Staff Member Licensed User

  5. timsteeman

    timsteeman Member Licensed User

    No, sorry. It was worth trying, but didn't work.
    This is not Basic4ppc issue, but don't you get a little bit tired about the compatibility problems in the types of the PDA?
    I rewrote my programme for a thousand time, and everytime i get another incompatible thing.
    This was the last step, and i really hoped it would work now. Such a pitty!
    :confused:
    Is it possible to use an older ftp.dll?? Do you have an older ftp.dll??
     
    Last edited: Nov 27, 2007
  6. Erel

    Erel Administrator Staff Member Licensed User

    There is no older FTP library.
     
  7. timsteeman

    timsteeman Member Licensed User

    Do you know a workaround?

    But do you know a workaround for retreiving a file from the internet?
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    You could use the HTTP library to download a file.
    There is an example of downloading a file in the manual.
     
  9. timsteeman

    timsteeman Member Licensed User

    Hi Erel,
    I believe that this may be the solution, but...

    I copied the http from the help. But i can't go further than an errormessage. Do i forget something. (i'm just a homemade programmer, :sign0013:)
     

    Attached Files:

  10. timsteeman

    timsteeman Member Licensed User

    Found the answer!
    Dim buffer(4096) As byte
    must be declared as global
     
Loading...