Print Preview ActiveX Active Users: 74 / Visits Today: 138
Highest Active Users: 74
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
 C_Twips - Method
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: Caption - Property Topic Next Topic: BorderColor - Property  

emiel
Administrator

Belgium
327 Posts

Posted - 07/14/2005 :  14:07:38  Show Profile
Method C_Twips

Action:

This method converts a string to twips.

Syntax:

C_Twips ( vSpec As Variant ) As Long

Parameter    Description                           
  • vSpec Dimension specification like "1.5 cm"
    If vSpec is a value, this value is considered to be twips, and the result is that value.

    If vSpec is a string, in which case it must take one of the forms shown below in which the space is required, the result will be in twips.

    <Value> space <Units>

    where Value can contain a decimal point

    where Units may be:

    Units

  • in or inches
  • mm or millimeters
  • cm or centimeters
  • tw or twips
  • pt or points

    Remarks:

    A twip is one-twenthiest of a point. 567 twips is equal to 1 cm.

    If the vSpec string is not specified correctly then an error is generated. If no units are given, and there is no space in the string, then the value is converted directly into twips.

    Note that many properties and methods take parameters which implicitly call C_Twips.

    Example:

    To calculate the amount of twips of 1 cm:

    dim lgTwips as Long
    lgTwips = Preview.C_Twips ("1 cm")
    where after lgTwips will contain 567 ( twips )

    See also:

    ConvertFromTwip -> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=342
    ConvertToTwip -----> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=343
    TwipsPerPixelX ----> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=470
    TwipsPerPixelY ----> http://www.ppreview.net/forum/topic.asp?TOPIC_ID=471


    Come and visit :
    www.immoassist.com
    www.ppreview.net
    www.vbdiamond.com
    www.d2dsources.com
    www.mandix.com

    Edited by - emiel on 07/27/2005 13:29:46
    Go to Bottom of Page
      Previous Topic: Caption - Property Topic Next Topic: BorderColor - Property  
     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