I am getting a strange error with the following code.
sCategory=Dialog.Input("NEW CATEGORY", "Please enter the Name for the New Category","" , MB_ICONQUESTION);
SQLite.Query(db, "Insert into groups(Cat) values( "..Enclose(MyEncrypt(sCategory))..")", nil);
ListBox.AddItem("ListBox2", sCategory);
If the CANCEL button is clicked instead of ending the routine the code inserts a new field in the database and listbox titled CANCEL.
What I want is for the user to be able to cancel the Dialog.Input routine and for no entries to be made in the database or ListBox.
Any Help Appreciated
John31

Reply With Quote
