Android Question [SOLVED AND EMBARRASSED] Error description: Input string was not in a correct format.

rabbitBUSH

Well-Known Member
Licensed User
this code produces the error quoted below it, I found one post referring to this error but it didn't give me anything to go on. . . .seems like a simple thing' . . . tried a number of things but it just won't go away. . .usual request for ideas and assistance, thanks.

CODE : Error description: Input string was not in a correct format.:
Dim outFILE As String = "OUTfile.txt"  ' -> declared in Create'

  If (!(File.Exists(File.DirAssets, outFILE)) Then  '< < < <  this is the offending line shown in the IDE / code highlight doesn't seem to work
        ''' writing
        '' 'Private downWRT As TextWriter -> declared in Globals
        downWRT.Initialize(File.OpenOutput(File.DirRootExternal, outFILE, False))
        downWRT.Write(DateTime.Now)
        downWRT.Close
    else if
            ''' reading
        ''' Private upRD TextReader -> declared in Globals
        upRD.Initialize(File.OpenInput(File.DirRootExternal, outFILE))

        Private line As String
            line = upRD.ReadLine
                Do While line <> Null
                    line = upRD.ReadLine
                    Log(line)
                Loop
            upRD.Close
    End If

B4A Version: 9.80
Java Version: 8
Parsing code. Error
Error parsing program.
Error description: Input string was not in a correct format.
Error occurred on line: 98 (Main)
If (!(File.Exists(File.DirAssets, CoronaVFILE)) Then
 
Last edited:

udg

Expert
Licensed User
Longtime User
! (esclamation mark) for not ?
 
Upvote 0

rabbitBUSH

Well-Known Member
Licensed User
! (esclamation mark) for not ?
Wood Trees and C

Oh and 02h30 (well that's my excuse what's yours for being wide awake today ::::: THANKS ??

??
WHO SAYS YOU DON'T GET QUICK REPLIES FROM THIS FORUM . . . . ?
 
Upvote 0

BillMeyer

Well-Known Member
Licensed User
Longtime User
Wood Trees and C

Oh and 02h30 (well that's my excuse what's yours for being wide awake today ::::: THANKS ??

??
WHO SAYS YOU DON'T GET QUICK REPLIES FROM THIS FORUM . . . . ?

Effects of lockdown boredom ?
 
Upvote 0
Top