|
-
Dec 31st, 2024, 12:07 AM
#7
Re: twinbasic bug report
 Originally Posted by xiaoyao
The ASC(char) function of twinbasic is wrong
Code:
Dim a As Long, asc1 As Long, W As Long, Str As String
Str = "?"
Str = ChrW(24120)
asc1 = Asc(Str)
W = AscW(Str)
ansiCode = Asc(StrConv(Str, vbUnicode))
Debug.Print "vb6 str=" & Str & ",asc=" & asc1 & ",AscW=" & W

I get no difference other than tB can render the Unicode char and VB6 can't:

So if your Chinese VB6 version is behaving different than the US version, the latter is currently how twinBASIC will behave for now. In the future localization may be supported.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|