Print Preview ActiveX Active Users: 93 / Visits Today: 209
Highest Active Users: 104
Print Preview ActiveX
Home | Profile | Register | Active Topics | Members | Search | FAQ | RSS
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Print Preview
 Help file
 TextWidth - Function
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: TextRotation - Property Topic Next Topic: TextHeight - Function  

emiel
Administrator

Belgium
327 Posts

Posted - 07/24/2005 :  12:16:39  Show Profile
Function TextWidth

Action:

This function returns the width of a text string using the current font in twips.

Syntax:

TextWidth ( strText As String ) As Long

Remarks:

The value returned is the width in twips of the specified string, depending on the current font (Name, Size) properties.

In general the character 'w' of a font is the widest character.

Example:

The following code returns the width of the indicated text:

lTextWidth = Preview.TextWidth ( "A line of text.")

See also:

TextHeight -> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=468

Come and visit :
www.immoassist.com
www.ppreview.net
www.vbdiamond.com
www.d2dsources.com
www.mandix.com
Go to Bottom of Page
  Previous Topic: TextRotation - Property Topic Next Topic: TextHeight - Function  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Print Preview ActiveX © Mandix Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.02