4D v13

WR FONTS TO ARRAY

Home

 
4D Write v13
WR FONTS TO ARRAY

WR FONTS TO ARRAY 


 

WR FONTS TO ARRAY ( fonts ) 
Parameter Type   Description
fonts  String array in Receives array of available fonts

The WR FONTS TO ARRAY command returns the list of available fonts in the fonts array. This list corresponds to the font drop-down list located in the Style palette.

fonts should be declared as a String or Text type array.

Example  

You want to check if the fonts required for your templates are installed in the current system. The [Fonts] table stores the list of required fonts. In the On Startup Database Method, you can write:

 ARRAY TEXT(aFonts;0)
 WR FONTS TO ARRAY(aFonts)
 ALL RECORDS([Fonts])
 While(Not(End selection([Fonts])))
    If(Find in array(aFonts;[Fonts]Name)=-1)
       ALERT("The font "+[Fonts]Name+" is required, please install it.")
    End if
    NEXT RECORD([Fonts])
 End while

 
PROPERTIES 

Product: 4D
Theme: WR Utilities
Number: 89173

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Write 6

 
SEE ALSO 

WR SET FONT