Discussion Board for collaboration on QlikView Scripting.
This is an example from the API-guide to get all fields/definitions in a group.
groups = ActiveDocument.GetGroups
set gp = groups(0).GetProperties
set vars = gp.FieldDefs
for i = 0 to vars.Count-1
set fld = vars(i)
msgbox("field " & i+1 & " is " & fld.Name)
But how do i get the label? I tried:
msgbox("label " & i+1 & " is " & fld.Label)
But did not work. Doesn't seem to find it in the API-guide.
Go to Solution.
Try something like this:
vars = gp.Labels
for i = 1 to ubound(vars)