Runtime error

markh2011

Member
Licensed User
Longtime User
Hi i am getting the following error at runtime.
LastException java.lang.NumberFormatException.invaliddouble "asdf"

The asdf is the contents of the edtLocation.Text variable which i am using as the title of the picture that is taken.
Am i concatenating the field and the .jpg incorrectly?

Why is it saying that the contents of the edtLocation.Text field is a double when i have declared it as a sting?

Dim a As String
a = edtLocation.text
Dim InputStream1 As InputStream
InputStream1 = File.OpenInput(File.DirRootExternal, a+".jpg")

The complete program compiles correctly but crashes when i press the button to create the picture and database record? The above code is part of the button click code.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…