Talk:API C FriendList.GetNumWhoResults

FrameXML has these two names swapped around, but I suspect that it is a bug. There is code to display a warning about the list being truncated, but it never triggers. --Mikk 15:47, 16 May 2006 (EDT)

The following code does not produce the results I expected. First pass (assume that it should find 10 people) sends 'numWhos = 0 totalCount = 0' to the chat frame. Second pass (assume that it should find 1 person) sends 'numWhos = 10 totalCount = 10' to the chat frame. Third pass sends 'numWhos = 1 totalCount = 1' to the chat frame. GetNumWhoResults seems to be one step behind SendWho.

SendWho(filter); local numWhos, totalCount = GetNumWhoResults; DEFAULT_CHAT_FRAME:AddMessage('numWhos = '..tostring(numWhos).. ' totalCount = '..tostring(totalCount)); --egingell 15:02, 6 March 2007


 * After you call SendWho("filter"); you have to wait for a WHO_LIST_UPDATE event before the results are available. So you'll need to call GetNumWhoResults; from an  event handler. --hudlee 08:01, 21 June 2007