LPLEN
|
Syntax: |
LPLEN(<Type>,<Text>,<Font
Style>,<Font Height in TWIPS>[,<Font
Width in TWIPS>])
|
||||||||||
|
|
|
||||||||||
|
Meaning: |
Returns the length of a print document text
as floating-point number. This function only has an effect with ENABLE LPGDI. LPLEN returns the width of <Text> if <Text> is printed with the font
style <Font Style> with the height <Font Height in TWIPS> and the
width <Font Width in TWIPS>. The current font defined with LPFONTNAME applies. With DISABLE LPGDI LPLEN returns the result –1. <Type> specifies in which measure the
text width is returned:
|
||||||||||
|
Parameter: |
|
||||||||||
|
Sample: |
/* Center title 15 point bold TITEL$ = "Customer List" LPFONAME = "Arial" TEXT_WIDTH% = LPLEN(1,TITEL$,1,15*20) LPCURSOR(1,2,(PAGEWIDTH(1)
- TEXT_WIDTH%) / 2) LPFONT = 1 /* Bold LPRINT UEB$; |
||||||||||
|
See also: |