INFO: ???? ?????? ??? AscB ?????? AscW ? Chr/ChrB/?????? ChrW

?????? ????????? ?????? ?????????
???? ???????: 145745 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

??????

?????? ??? ??????? ?? ?? ????????? ???????? ???????? ?? ?????? ?? ????? Chr ?????? ????????? ?? ASCII ?????? ????. ?? ???? ???? Unicode ?? ??????? ??? ??????? ?????????? ? ?????? ?????? ??? ??????? ????? ?????? ? Chr ???????. ????? Microsoft Visual Basic (4.0 ? ????) ?? Windows ?????? ??? ????? AscB/ChrB ???????? AscW/?????? ChrW.

??????? ????

Unicode ????? ?? ????? ?? ?????? ???????? ??????? ANSI ?????? ?????? ?? ????? ????. ???? ?????? ANSI ???????? ??? ???? ???? ?????? ?? ???, ??? ???? ?? 256 ??? ????? ??? ????. ????? ????? ?????? ????? ??????? ?????? ?????????? ??? ????? ??? ????? ????? ??????? ??? ??????. ????? Unicode ?? ??? ??? ????? ????? ???? ? ???? ?????? ???? Unicode ?????? ????? 65,536 ??????? ????????.

Microsoft Windows NT ? Microsoft Windows 2000 ? Microsoft OLE 2.0 ?? ??????? Unicode ??? ????? Visual Basic (4.0 ? ????) ???? ??????? ??????? ?????? Unicode. ????? AscW ? ?????? ChrW ???? ??????? ??? ???? ???? Unicode ??????. ???? ??? ??????? ???? ????? ?????? ? Chr ?????? ??????? ??? ?? ??? ??????? ?? 0 ??? 65,535 ????? ?? ???? ?? 0 ??? 255. ????? ??? ?????? Visual Basic (??? ???? ??????? ??????? ????? ????) "?" ??? ??? ???????? ?? ???? ????? ??? ??? ??? Unicode.

???? ??? ???? ????? ???? ??????? ??????? ?????? Unicode ? ??? ?????? ????????? ?? ???? ?????? ???????? ???????? ?? ?????. ??????? ???? Chr ?????? ?????? ??? ????? ??? ???? ??? ?????? ??? ???. ??? ???? ??????:
   stringvar = Chr(65)
				

??????? ?? ????? ???? ????? ?????? ??? ???? ?????? 1 ????? ??? ???? 65 ? ???? 2 ???? ?? 0 (??? ?? ????? Unicode ????? ????? "A"). ???? ?? ???? ?? ??????? ?? ANSI ??? Unicode ?? ????? entail ????? ???? ???? ?? ???? ??? ?????? ??? ???? ?? ??? ??????. ??? ???? ??????? ?? ???? ???? ?????? ANSI ?? ???? 130 159 ????? ??? ??? Unicode ?????? ??????. ???? ????? 'Debug.Print AscW(Chr(130))' ??? ??? ??? ???? 8218.

??????? Microsoft Windows ????? ?????? endian ??????? ? ??? ???? ??? ??? ?? ???? ???? ?????? ?????? ????? ??? ????? ?????? ?????? ??????? ??????? ?????????. ??? ???? ??? ??? Unicode "A" ??? ????? ??????? ???????:
   -------------------
   |   65   |    0   |
   -------------------
     byte 0     byte 1
				

???? ??????? ??????? AscB ? ChrB ????? ???????? ?? ?????? ??? ?? ??? ????? ?????? Chr ? ??? ??? ??????? ???? ?????? ????? ????? ????. ??? ??? ???? ?? ????? ?????? ??????? ???? ????? ??? ????? ???????? ?? 65 ? 66 67 ? 68 ???????? ?? ??????? ?????? Chr ?? ????. ??? ???? ??????? ?????? ChrB ????? ?? ???. ??? ???? ??????:
   stringvar = ChrB(65) & ChrB(66) & ChrB(67) & ChrB(68)
				

????? ?? ???? ???? ??????? ??????? ????? ????? ??? ???????? ???? ???????? ???????? ????????? ???? ???????.

??????? ????? ??? ????? ??? ??????????? ??????? ??? ??????? ?????? ??? ????????? ???? ????.

????? Asc(Chr(255))--> "255"

?? ???? ?? ???? ???? ???? ??? ?? ?????? Chr ?????? ??? Unicode ???? ?????? ????? ???? ????? ?? ??? ANSI ???? ????.

????? Asc(ChrB(255))--> ??????? ????? ??? ???? 5.

??????? ??? ????? ??? ??? ????? ?????? ?????? ????? ????? ???? ??? ????? ?????? ?????? ???? ChrB ????? ???? ???.

????? Asc(Chr(256))--> ??????? ????? ??? ???? 5.

??? ????? ?? ?? ???? ?????? Chr ??? Unicode ????? ???? ? ?? ???? ?????? ????? ??? 0 ? 255 ??????? ?????? ??? (???? ?? ??? ???? DBCS ????? ??????/Chr ?????? ???? DBCS ????? ???? ??????? ?? Unicode). ???? ??????? ?????? ?????? ChrW ?????? ??? ????? ??? Unicode 65,536 ??????.

????? AscW(ChrW(256))--> "256"

??? ?? ??????? ?????? ?? ??????? ?????? ?? ??? ?????. ?????? ?????? ChrW ???? ?? 0 ??? 65,536 ????? ??? ????? (?? ????? 32-??). ???? ??? ????? ????? ???? ?? ??? Unicode ?????? AscW ????? ?????? ???? Unicode ?????? ??? ?????.

????? Asc(ChrW(256))--> "65"
????? Asc(ChrW(5000))--> "63"

?? ???? ??? ?? ?? ?????? ?????? ChrW ??? ??? ?????? ?????. ChrW(256) ????? "A" ? ? ???? ???? ?????? Asc("A") ???? ?? ??? Unicode (? ANSI) "A". ???? ?? Visual Basic ???? ????? ??? ????? ???? ????? Chr(5000) ???? ???? "?" ? ? ??? ?? ?????, Unicode ? ANSI ?????? ?? "?" ?? 63.

????? AscB(Chr(65))--> "65"
????? AscB(ChrW(256))--> "0"
????? AscB(ChrW(257))--> "1"
????? AscB(ChrW(555))--> "43"
????? AscB(ChrW(65535))--> "255"

???? ??? ?????? ??? ???? ?? ???? ??? ?? ???? ??? ????? ????? ?? ??? ??????? (???? ???? endian ????? ?????) ?????? ??????? ?????? AscB ???? ??? ?? ?????? ????? ?? ??? ?????. ???? ???? ????? ??? ????? ???????? ??????:
             -------------------
   Chr(65)   |   65   |    0   |
             -------------------
   Chr(256)  |    0   |    1   |
            -------------------
   Chr(257)  |    1   |    1   |
             -------------------
   Chr(555)  |   43   |    1   |
             -------------------
   Chr(65535)|   255  |  255   |
             -------------------
               byte 0    byte 1
				

???? ?????? AscB ??? ?? ?? ?????? ????? ?? ?????.

--> ChrB(65) ??????? ""

????? ?? ??? ??????? ??? ?????? ChrB Visual Basic ??? ?????? ChrB ??? ?????? ????? ???? ??? ???? ????. ????? ???? ???? ??? ??? ???? ?? ??? ??? Visual Basic ???? ???? ????? ??? ???? ??? Unicode (?? ????? ?? ??????).

??????? ChrB(65) & ChrB(0)--> "A"

?? ??? ??????? ??? ???? ??? ??????? ???? ???? ??? ????? ????? ???? ????. ???? ????? ?? ?????? ?? ??? ??? ?? Unicode "A" ? ???? Visual Basic ?????.

???????

???? ???????: 145745 - ????? ??? ??????: 06/???? ?????/1424 - ??????: 2.0
????? ???
  • Microsoft Visual Basic 5.0 Learning Edition
  • Microsoft Visual Basic 6.0 Learning Edition
  • Microsoft Visual Basic 5.0 Professional Edition
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic 5.0 Enterprise Edition
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0
  • Microsoft Visual Basic 4.0 Standard Edition
  • Microsoft Visual Basic 4.0 Professional Edition
  • Microsoft Visual Basic 4.0 Professional Edition
  • Microsoft Visual Basic 4.0 16-bit Enterprise Edition
  • Microsoft Visual Basic 4.0 32-Bit Enterprise Edition
????? ??????: 
kbmt kbinfo KB145745 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????145745

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com