Doesn’t seem to work here either. Maybe you can use that:
[code]Declare Function CFStringTokenizerCopyBestStringLanguage Lib “CoreFoundation”
(aString As CFStringRef, range As CFRange) As CFStringRef
Declare Function CFLocaleGetLanguageCharacterDirection Lib “CoreFoundation”
(isoLangCode As CFStringRef) As Integer
Dim range As CFRange
range.location = 0
range.length = stringToTest.Len
Dim isoLangCode As String = CFStringTokenizerCopyBestStringLanguage(stringToTest, range)
Select Case CFLocaleGetLanguageCharacterDirection(isoLangCode)
Case kCFLocaleLanguageDirectionUnknown
MsgBox(“Unknown”)
Case kCFLocaleLanguageDirectionLeftToRight
MsgBox(“Left to right”)
Case kCFLocaleLanguageDirectionRightToLeft
MsgBox(“Right to left”)
Case kCFLocaleLanguageDirectionTopToBottom
MsgBox(“Top to bottom”)
Case kCFLocaleLanguageDirectionBottomToTop
MsgBox(“Bottom to top”)
End[/code]