>I had the same problem as you -- seems the length does not get updated when the caption is changed. Even if the autosize property is set to true. You can use the form's TextWidth() method to return the length; just ensure the form's fontsize, fontname properties are the same as the label.
Or use the label's s fontsize, fontname properties as the parameters to the function of the same name. Actually it's txtWidth(), not quite same.