TextEncoding.Equals

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
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.

Var t1 As TextEncoding
Var 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