ok, iv broken out the sqlite plugin after watching tigg's video tuts and already iv hit a road block
i want to only add a item to the database if it dosent already exist, so like no duplicate entrys can be made based on a listbox items text,
so how would i compair a string of text to either a database column or the listbox name (as thay will both contain the same data) and only add the string to the database if the same string isent already present
this is what iv come up with, and guess what.....it dosent work, lol
am i even half on the right track, do i need a loop, if so, how do i format it
thanks in advance for any help
i want to only add a item to the database if it dosent already exist, so like no duplicate entrys can be made based on a listbox items text,
so how would i compair a string of text to either a database column or the listbox name (as thay will both contain the same data) and only add the string to the database if the same string isent already present
this is what iv come up with, and guess what.....it dosent work, lol
isCB = Clipboard.IsTextAvailable();
if isCB then
cbText = Clipboard.GetText();
if cbText ~= tbReturn.Data["data"] then
AddtoDB()
end
end
if isCB then
cbText = Clipboard.GetText();
if cbText ~= tbReturn.Data["data"] then
AddtoDB()
end
end
thanks in advance for any help
Comment