M markh2011 Member Licensed User Longtime User Nov 29, 2011 #1 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.
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.
JonPM Well-Known Member Licensed User Longtime User Nov 29, 2011 #2 InputStream1 = File.OpenInput(File.DirRootExternal, a & ".jpg") Upvote 0