Android Question GET VALUE

Discussion in 'Android Questions' started by Herbert Souza, Jul 1, 2015.

  1. Herbert Souza

    Herbert Souza Member Licensed User

    Friends, I need some help here, I'm new in basic 4 android, it seems to be simple but I can not solve, I have a processing, and print it on a map, but I need to save that too in a text file. This processing returns 5 keys, I need to save only 1 key in a txt file, how would I do?

    My current code is this:

    Code:
    Sub myOCR_ExtractedText_Response(OCRdata As Map)

    ProgressDialogHide
    For I = 0 To (OCRdata.Size - 1) / 5
                    
    Msgbox(OCRdata.Get("Text_" & I), "Resultados Obtidos")
                
    File.Writemap(File.DirRootExternal, "Herbert.txt", OCRdata)       
    Next
    End Sub
    As I said it returns 5 values (keys), in this case it is printing the TEXT_0 value in the map, I want to save only this in my .txt file

    Attached I leave my txt file as it is being printed now.
     

    Attached Files:

  2. Cableguy

    Cableguy Expert Licensed User

    Ola Herbert, na linha onde escreves o file coloca uma condicao para que so escreva o "TEXT_0", algo como:

    If I=0 Then File.Writemap(File.DirRootExternal, "Herbert.txt",OCRdata.Get("Text_" & I))
     
    walterf25 likes this.
  3. Herbert Souza

    Herbert Souza Member Licensed User

    Cableguy muitíssimo obrigado.
     
Loading...
  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