Salesforce

FontSet (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

FontSet (Magic xpa 4.x)

Updates the Application Font repository loaded into the memory with a new font value.

Syntax:

FontSet (font number, font, size, script code, orientation, bold, italic, strike, underline)

Parameters:

font number – The font number in the Application Font repository.

font – The font name, such as Microsoft Sans Serif.

size

script code

orientation

bold

italic

strike

underline

Returns:

Logical.

The function will return False if an error occurs. For example:

  • The font number is zero or does not exist in the table.

  • The parameters' values are illegal.

Example:

Evaluate FontSet(12, 'Microsoft Sans Serif',14,0,0, 'TRUE'LOG,'FALSE'LOG ,'FALSE'LOG ,'FALSE'LOG) will update font 12 to Microsoft Sans Serif, size 14, Bold.

Note:

The font file will not be updated.

The change will affect the display forms only. It will not change the font of output reports.

After the update of a font, the controls in the current form and subforms will be refreshed and any usage of this font will be changed.

  • Parent programs, child tasks, parallel programs, and phantom tasks will not be refreshed; so they might be seen with the old font (and might be changed later on due to internal settings).

  • When changing the font, it might affect the appearance of the control, such as the height of a combo box.

The form font will not be changed. When replacing the form font, the font size will remain as-is. The new font will be used after re-entering the program.

This is a client-side function that is available for Online and Rich Client tasks. If executed in a RIA Batch task, no change will be seen on the client side.

Exceptions:

This function is not supported in Web Client tasks.

See also:

ColorSet

The Online and Rich Client Samples projects (program IF09 and RIF09)

Since version: 3.1

Reference
Attachment 
Attachment