Collaborama About Help Contact Anonymous [login] Source: site.view [edit] Function name: getPlayerData Arguments: Description: Page type: webl Render function: Module: sportstreak Page source: var s = WubCall("dataTop75", []); var Lines = Str_Split(s, "\n"); var Headers = Str_Split(Lines[0], ","); var Players = []; var i = 1; var err = []; while (i < Size(Lines)) do var Cols = Str_Split(Lines[i], ","); if (Size(Cols) == Size(Headers)) then var player = [. .]; var j = 0; while (j < Size(Cols)) do var val = Str_Trim(Cols[j]); if val == "-" then val = "" end; player[ Str_Trim(Headers[j]) ] := val; j = j + 1 end; Players = Players + [player]; else err = err + [Lines[i]] end; i = i + 1 end; Players;