Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-17-05, 03:26 AM   #1
briggsy
A Murloc Raider
Join Date: Nov 2005
Posts: 7
For Loop Question,

Hi i have a table of Data that is searched using an editbox, i have that working however, when i display the results in a For table i get the frst result spammed over and over, here is how my loop is setup.


Code:
function mymod_Update()

	local Item;

	FauxScrollFrame_Update(mymodScrollFrame, 40, 23, 16);
	for iItem = 1, 23, 1 do
		local Index = Item + FauxScrollFrame_GetOffset(mymodScrollFrame);
		local Name = getglobal("mymodbutton"..Item);
	


			Name:SetText(result);
			Name:Show();
		
	end
end
This results in my hole scrollframe spammed with the first result. not a list of results i had inteded.


i have never used loops before.
Help oO
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » For Loop Question,


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off