Where is "result" defined? If result is a global variable then this line will put its value in every box:
Code:
Name:SetText(result);
If it's a local variable then you shouldn't see anything in the boxes.
Your for loop is structured fine. As a test you can do:
Name:SetText("line "..Item)
or
Name:SetText("line "..Index) -- will be more meaningful