TextEncoding.Equals

From Xojo Documentation
Jump to: navigation, search
Method

TextEncoding.Equals(otherEncoding as TextEncoding) As Boolean

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
Personal tools
Namespaces

Variants
Actions
Main
Content
Starting Out
Dig Deeper
More Help
Toolbox
About