String length three times longer in actual file?

Aug 6, 2015 at 8:33 AM

I have a problem creating .sav file when setting length for string variables. When opening the file after creation, the string length is three times longer? In example below, the string length is 300 instead of 100.
    Dim v1 As New SpssStringVariable()
    v1.Name = "v1"
    v1.Label = "What is your name?"
    v1.Length = 100

Any ideas how to solve this (bug)?

Thanks in advance!


Sep 3, 2015 at 9:05 AM
Sep 3, 2015 at 5:12 PM
Thank you for sharing what you learned.