Value labels

Nov 27, 2010 at 8:57 AM

Can i write value labels using this library?

Coordinator
Nov 27, 2010 at 3:19 PM
Edited Nov 27, 2010 at 3:20 PM

Yes, this library can do that.

Feb 28, 2011 at 1:35 PM

Hello Mr. AArnott

 

Thank you for your reply, I was wondering how to do that?, Can you give an example? By the way, great library... been using it for sometime..

 

Thank you again....

 

Feb 28, 2011 at 1:56 PM

Something along these lines in C#

SpssNumericVariable vGender = new SpssNumericVariable();
vGender.ValueLabels.Add(1, "Male");
vGender.ValueLabels.Add(2, "Female");
SpssDoc.Variables.Add(vGender);