TextEncoding.Equals

From Xojo Documentation

Method

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.

Example

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

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