Android Question B4A V5 FTP issue? HELP kind people!

Discussion in 'Android Questions' started by thughesimsuk, Jul 3, 2015.

  1. thughesimsuk

    thughesimsuk Member Licensed User

    This is a strange one, I have the latest Net Library (v1.53) and I have declared FTP in the Process_Globals,

    Dim FTP as FTP
    but when I type
    I usually get a drop-down with all the members, but for some reason B4A is not recognising the members.. I get the following,


    This has only now become an issue since I have update B4A to V5, If I delcare FTP2 as in the following it works..


    I get the following errors now because of this issue when I compile,

    B4A version: 5.02 (1)
    Parsing code. (0.96s)
    Compiling code. Error
    Error compiling program.
    Error description: Unknown member: downloadfile
    Occurred on line: 2840
    Word: downloadfile

    This is really causing me an issue because I don't want to have to go through all my modules updating my code for something that has always worked. Stranger yet is I have another project and ftp is working fine and its declared "Dim FTP as FTP".

    I thought I would reach out to the community for help, its probably something dumb that I am doing but can anyone shed light on this.

  2. sorex

    sorex Expert Licensed User

    you should never use variables named to objects to prevent misery and confusion.

    just name it myFTP or something instead, a quick search'n replace will fix it in your other projects.
  3. thughesimsuk

    thughesimsuk Member Licensed User

  4. sorex

    sorex Expert Licensed User

    I guess Erel has to answer that one as it might be a change in the (pre)compiler
  5. Erel

    Erel Administrator Staff Member Licensed User

    I'm unable to reproduce it. Can you upload a small project that doesn't compile because of this issue?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice