advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
TEXTHEIGHT, TEXTWIDTH Method Details
  ◄Summary►  ◄Details►  ◄Example►                ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
 [form. | picturebox.]TEXTHEIGHT(stringexpression$)
 [form. | picturebox.]TEXTWIDTH(stringexpression$)
 
 Usage Notes
   ■ TEXTHEIGHT returns 1 + the number of CR+LF sequences (the number of
     lines) contained in stringexpression$. For example:
 
         Carriage Returns    TextHeight
         ════════════════    ═══════════════════════════════════════════════
         0                   1
         1                   2
         2                   3
         ...                 ...
 
   ■ If stringexpression$ contains embedded carriage returns, TEXTWIDTH
     returns the length of the longest line.
 
   ■ If stringexpression$ does not contain any embedded carriage returns,
     then TEXTWIDTH returns the display length of stringexpression$. This
     value is equivalent to:
 
         LEN(stringexpression$)
 
     See: ◄LEN Function►