WR FONTS TO ARRAY

4D - Documentation   Français   English   German   4D Write, Command Theme List   4D Write, Command Alphabetical List   4D Write, Constant Theme List   Back   Previous   Next

version 6.0


WR FONTS TO ARRAY (fonts)

ParameterTypeDescription
fontsString arrayReceives array of available fonts

Description

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

See Also

WR SET FONT.


4D - Documentation   Français   English   German   4D Write, Command Theme List   4D Write, Command Alphabetical List   4D Write, Constant Theme List   Back   Previous   Next