GefTextFormat.SetFormatToGeneral (method)

Sets the format to be used for the TextExpression display.
Syntax: object.SetFormatToGeneral
Description: The SetFormatToGeneral method sets the display format to a generalized state. The parameters correspond to the fields in the Text property page.

Example:

Sub GefTextFormat_SetFormatToGeneral()
    
    Dim oCimObj As GefObject
    Dim oCimTxtFmt As GefTextFormat
    
    Set oCimObj = CimGetObject
    Set oCimTxtFmt = oCimObj.TextFormat
    oCimTxtFmt.TextExpression ="$Project.Computer"
    CimGetScreen.Refresh False
    oCimTxtFmt.SetFormatToGeneral
    
End Sub