function keyKey1()
for i=0,m1.lines.count do end
local Box = e1.text
if Box ~= m1.lines[i] then
showMessage("Not available on the list.")
else
showMessage("Available in the List")
--Trainer1.hide()
--Trainer2.Show()
end
end
function keyKey1()
local Box = e1.text
for i=0,m1.lines.count do
if Box ~= m1.lines[i] then
showMessage("Not available on the list.")
else
showMessage("Available in the List")
--Trainer1.hide()
--Trainer2.Show()
end
end
end
BUT, the function will loop to matching the edit box text as much as memo lines text count until the end. One of memo line text will show 'Available in the list'.
I more like using something like this:
Code:
function keyKey1()
x = m1.Lines.Text
z = e1.Text
if string.find(x, "%f[%a]" ..z.. "%f[%A]") ~= nil then
showMessage("Available in the List")
else
showMessage("Not available on the list.")
end
end
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
function keyKey1()
x = m1.Lines.Text
z = e1.Text
if string.find(x, "%f[%a]" ..z.. "%f[%A]") ~= nil then
showMessage("Available in the List")
else
showMessage("Not available on the list.")
end
end
that's it worked.
You saved me from great trouble. Thank you.
I am preparing a user-defined Trainer.
(To prevent unauthorized distribution and use)
I will send you a sample .CT file when the project is finished.
Maybe you can give some ideas for some arrangements. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum