4D Write v14

WR FONTS TO ARRAY

Home

 
4D Write v14
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 Write
Theme: WR Utilities
Number: 89173

 
HISTORY 

Created: 4D Write 6

 
SEE ALSO 

WR SET FONT

 
ARTICLE USAGE

4D Write Language ( 4D Write v11.6)
4D Write Language ( 4D Write v12)
4D Write Language ( 4D v13)
4D Write Language ( 4D Write v14)
4D Write Language ( 4D Write v14 R2)
4D Write Language ( 4D Write v14 R3)
4D Write Language ( 4D Write v14 R4)