Sub Delete(strOld As String, iIndexStart As Int, iIndexEnd As Int, arrIntCharsDeleted() As Int) As String
Dim strPre As String
Dim strSuf As String
Dim iCode As Int
Enums.bDelKey = True
If iIndexStart = iIndexEnd Then
If iIndexStart > 0 Then
iCode = Asc(strOld.SubString(iIndexStart - 1))
If iCode > 55295 And iCode < 57449 Then
strPre = strOld.SubString2(0, iIndexStart - 2)
arrIntCharsDeleted(0) = 2
Else
strPre = strOld.SubString2(0, iIndexStart - 1)
arrIntCharsDeleted(0) = 1
End If
Else
Return strOld
End If
Else
strPre = strOld.SubString2(0, iIndexStart)
End If
If iIndexStart < strOld.Length Then
strSuf = strOld.SubString(iIndexEnd)
End If
Return strPre & strSuf
End Sub