TextEncoding.Variant

From Xojo Documentation

Revision as of 01:56, 30 July 2019 by Gperlman (talk | contribs)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Integer )
aTextEncoding.Variant = newIntegerValue
or
IntegerValue = aTextEncoding.Variant

Supported for all project types and targets.

A variant of the Base text encoding.

Notes

The entry for TextConverter contains the possible values of Variant.

Example

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