TextEncoding.IsValidData

From Xojo Documentation

Revision as of 15:32, 9 August 2017 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Method

TextEncoding.IsValidData(Text As String) As Boolean

New in 2010r2

Supported for all project types and targets.

Checks to see whether the passed string is valid for that encoding.

Example

If Encodings.UTF8.IsValidData(myText) Then
// do whatever you want here...
End If