From Xojo Documentation

Revision as of 14:42, 5 March 2020 by PLefebvre (talk | contribs) (Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Supported for all project types and targets.

The type of encoding. The entry for TextConverter contains the possible values of Base.


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