From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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

Supported for all project types and targets.

A variant of the Base text encoding.


The entry for TextConverter contains the possible values of Variant.


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

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