i have problem with string and table
this scenario
mytable = TextFile.ReadToTable("AutoPlay\\Docs\\test.log");
patern = "name"
string.find(mytable, patern, 1, false)
if found then
how many total patern found .
this i do, but error code
help me please
this scenario
mytable = TextFile.ReadToTable("AutoPlay\\Docs\\test.log");
patern = "name"
string.find(mytable, patern, 1, false)
if found then
how many total patern found .
this i do, but error code
Code:
mytable = TextFile.ReadToTable("AutoPlay\\Docs\\test.log"); patern = "name" for i, v in pairs (mytable) do sFind = string.find (mytable,, patern, 1, false) if sFind ~= -1 then count = Table.Count(sFind); result = Dialog.Message("Notice", "Total : :"..count..", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); end end
Comment