GefTextFormat.SetFormatToUsePointConfig (method)

Sets the format to be used for the TextExpression display.
Syntax: Boolean = object.SetFormatToUsePointConfig ( )
Description: The SetFormatToUsePointConfig method formats the point's display value to the information in the point database. The parameters correspond to the fields in the Text property page.


Sub GefTextFormat_SetFormatToUsePointConfig()
    Dim oCimObj As GefObject
    Dim oCimTxtFmt As GefTextFormat
    Set oCimObj = CimGetObject
    Set oCimTxtFmt = oCimObj.TextFormat
    If Not oCimTxtFmt Is Nothing Then
        oCimTxtFmt.TextExpression = "$Project.DateTime"
        CimGetScreen.Refresh False
        If oCimTxtFmt.SetFormatToUsePointConfig = True Then
            CimGetScreen.Refresh False
            MsgBox "The value is now being displayed using the configuration in the point database"
        End If
        MsgBox "The object does not have any text to format"
    End If
End Sub