Hi all,
My first app has 7 different passwords with 7 different textbox. My db has already added those passwords (column 1, see pic attached).
When I write a password in my app let me say in textbox1 and if it is correct then write the inf from column 1 to column 2 in my db.
After completed the 7 passwords by writing in each textbox, the app send me a message "enjoy your free coffe", then I reset the db by writing "1111111" see pic attached, column 2 .
well, it work prefect, but looks awfull
then, How can I use just one password and just one textbox?
Thanks for any help..
My current code below, I have repeated it with 7 passwords, 7 buttons and 7 textboxss..
My first app has 7 different passwords with 7 different textbox. My db has already added those passwords (column 1, see pic attached).
When I write a password in my app let me say in textbox1 and if it is correct then write the inf from column 1 to column 2 in my db.
After completed the 7 passwords by writing in each textbox, the app send me a message "enjoy your free coffe", then I reset the db by writing "1111111" see pic attached, column 2 .
well, it work prefect, but looks awfull
then, How can I use just one password and just one textbox?
Thanks for any help..
My current code below, I have repeated it with 7 passwords, 7 buttons and 7 textboxss..
B4X:
Sub Button5_Click
Cursor1 = SQL1.ExecQuery("SELECT * FROM persons")
Cursor1.Position = 1
c = Cursor1.GetString("Password")
If c=EditText3.Text Then
Panel3.Visible=False
Panel2.Visible=True
ImageView2.Visible=True
SQL1.ExecNonQuery("UPDATE persons set copypassword ='cup2' WHERE ID = '2' ")
End If
'Cursor1.Close
WebView1.Visible=True
Attachments
Last edited: