God bless you for the help
i tried the code and get nothing…
i do not know the reason…
if i use the following code and use number 1 or 2 or 3 etc…
i get the specific records:
rs = db.SelectSQL("SELECT * FROM Users WHERE UserID =2" )
it does not work either
perhaps and it is sure the error comes earlier as i use 2 windows
in the first window user types UserID in TextField and then at Keydown Event i open the second window as following:
var w as new WindowListusers
w.TextField1.Text = number.ToText
w.callBack = self
w.ShowModal()
and at the second opened window at open event and i convert the text to number
number = TextField1.Text.ToInteger
is there any better way to pass data between 2 windows without all the mess i do above?
Good evening.
One more question to all friends above or anyone who can help:
i have a Sqlite database called entries a table called users
and a column called Username.
When i read data to fill a listbox by this command rs = db.SelectSQL("SELECT * FROM Users")
and all record form database fill my listbox.
The problem is when i try to filter the username
where someone may enter a small part of user name
instead of whole Username rs = db.SelectSQL("SELECT * FROM Users WHERE Usename = ", name)
i want to search all database and display all records that their username start from
“Smith” instead of writing the whole Username “John Smith” (John Smith is an example)