I use JdbcResultSet to read data from SQL database, I'm making a search dialog box to filter data, i want to add quotes to search-criteria according to its type like
I tried IsNumber function, but when searching for phone number(text field) it returns true, so i can not add quotes in this case!!
I think about adding check box to let user select if this Value is real number like unit-price, or if it is text, like phone-number!
any ideas how solve this problem?
B4X:
if field.type = text then
strSearch = ("'" & value & "'" )
else
strSearch = (value)
end if
I tried IsNumber function, but when searching for phone number(text field) it returns true, so i can not add quotes in this case!!
I think about adding check box to let user select if this Value is real number like unit-price, or if it is text, like phone-number!
any ideas how solve this problem?