I'm a beginner and I need help desperately. here is the example, main module has ID.text variable from editText panel, meanwhile activity 2 has name.Text. So I want to create a loop in main activity where when name.text has user input data, main activity will run a certain program with it but when does not, program will run based on ID.text. here are the codings btw. this codes only return ID.text.
Sub button1_Click
If activity2.name.Text = True Then
FileName = activity2.name.Text & ".jpg"
Else
FileName = ID.Text & ".jpg"
Return
End If
image.Bitmap = LoadBitmap ( File.DirRootExternal, FileName)
End Sub
Sub button1_Click
If activity2.name.Text = True Then
FileName = activity2.name.Text & ".jpg"
Else
FileName = ID.Text & ".jpg"
Return
End If
image.Bitmap = LoadBitmap ( File.DirRootExternal, FileName)
End Sub
Last edited: