This?
JScript code:
var Tabs = {
"RadSettings": "Settings",
"RdiOtherTab": "Other tab"
// Etc.
}
function LoadTabs(PlusWnd) {
for(var i in Tabs) {
for(var e = 1; e <= 4; e++) PlusWnd.Button_SetElementText(i,"TxtSettings" + e,Tabs[i]);
}
}
It loops through the Tabs object. For each i in the Tabs object, it'll do four loops, setting text to the control with ID i, TxtSettings followed by the number e and the text as specified in the Tabs object. You need to pass a PlusWnd object to the LoadTabs function.