Dim NumCharacters As Integer

Me.Caption = "Say It..."
NumCharacters = Me.Caption.Len()


Basically, you add .Len() to any string, and you'll get the number of
characters. Remember that when using foreign languages: the number of
characters could be different than the number of bytes; if you're looking
for the number of bytes, use LenB().

On 8/21/06, Brian Heibert <[EMAIL PROTECTED]> wrote:

Is it possible to take this caption of text
me.Caption = "Say It..."
and figure out how many characters the caption takes up?

I tried the previous solution that worked for PushButtons but now I
am using a custom button that looks better with Brushed Metal windows

Brian
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>




--
Keith Bennett, tA-Kane
Software developer and Macintosh enthusiast

Free iPods!!!
http://www.freeiPods.com/?r=10867472
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to