From Xojo Documentation

Revision as of 01:57, 30 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

TextEncoding.Equals(otherEncoding as TextEncoding) As Boolean

New in 5.0

Supported for all project types and targets.

Compares the given encoding to the passed encoding. Returns a Boolean.


This example compares the encodings of the contents of two TextAreas.

Var t1 As TextEncoding
Var t2 As TextEncoding
t1 = Encoding(TextArea1.Value)
t2 = Encoding(TextArea3.Value)
Label1.Value = t1.InternetName
Label2.Value = t2.InternetName
If t1.Equals(t2) Then
TextField1.Value = "Equals"
TextField1.Value = "Not equals"
End If