View Single Post
06/30/14, 01:33 PM   #16
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Tar000un View Post
I didnt a zgoo on, but after a rapid test to complet my answer :
if table[1] = true, so #table = 1, but if table["index"] = true, so #table = nil.

In fact #table is working only with the last correct numeric index.
table[1] = true;
table["index"] = true;

=> #table = 1

SOooo... The table has a non-zero number of results but a #table = 0, because it's probably using a string key instead a numeric key.
Return value from ZO_LinkHandler_ParseLink(link) is not a table, so #ZO_LinkHandler_ParseLink(link) does not work. You can try to use:
Lua Code:
  1. local resultsTable = { ZO_LinkHandler_ParseLink(link) }
  2. d(#resultsTable)
  Reply With Quote