From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aTextEncoding.Format

Supported for all project types and targets.

A format for the Base text encoding.


Used by Unicode for defining which format of Unicode you wish to use.


This example returns the Base, Format, and Variant values for the text in TextArea1.

Var t As TextEncoding
t = Encoding(TextArea1.Value)
If t <> Nil Then
Label1.Value = "Base=" + t.Base.ToString
Label2.Value = "Format=" + t.Format.ToString
Label3.Value = "Variant=" + t.Variant.ToString
End If