Please enable JavaScript to view this site.

 

int = TextNumLines(nBoxWidthInPixels,sSomeText,sFontName,nFontSizeTimes100,bIsBold)

 

This macro function returns the number of lines, including any partial line at the end, that will be occupied by the string sSomeText in a textbox of width nBoxWidthInPixels, using the font sFontName in size nFontSizeTimes100, the text being in bold, or not, according to the value of bIsBold.

 

The font sFontName must be installed on the computer when this function is called.

 

See also: StrLength, TextWidth.

 


Topic 174515, last updated on 18-Apr-2020