spss.GetVariableLabel Function (Python)
spss.GetVariableLabel(index). Returns a character string containing the variable label for the variable in the active dataset indicated by the index value. The argument is the index value. Index values represent position in the active dataset, starting with 0 for the first variable in file order. If the variable does not have a defined variable label, a null string is returned.
Example
#create a list of all variable labels
varcount=spss.GetVariableCount()
labellist=[]
for i in range(varcount):
labellist.append(spss.GetVariableLabel(i))