Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

請問VB5.0的LEN指令

0 views
Skip to first unread message

YY

unread,
Aug 27, 1998, 3:00:00 AM8/27/98
to
VB的LEN函數好像把一個中文字長度當作1,
可是中文字明明長度是2,請問怎麼處理呢?
有沒有函數可以求出一個字串真實的長度呢?
謝謝!
--
SongYY上
--
※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: dial139.20365191.gcn.net.tw

Art

unread,
Aug 27, 1998, 3:00:00 AM8/27/98
to
※ 引述《SongY...@bbs.cs.nthu.edu.tw (YY)》之銘言:
: VB的LEN函數好像把一個中文字長度當作1,
: 可是中文字明明長度是2,請問怎麼處理呢?
: 有沒有函數可以求出一個字串真實的長度呢?
: 謝謝!

LenB
--
[m※ Origin: 臺大電機 Maxwell 站 ◆ From: m1-226.ym.edu.tw

YY

unread,
Aug 28, 1998, 3:00:00 AM8/28/98
to
※ 引述《cBr...@bbs.ee.ntu.edu.tw (Art)》之銘言:

> ※ 引述《SongY...@bbs.cs.nthu.edu.tw (YY)》之銘言:
> : VB的LEN函數好像把一個中文字長度當作1,
> : 可是中文字明明長度是2,請問怎麼處理呢?
> : 有沒有函數可以求出一個字串真實的長度呢?
> : 謝謝!
> LenB
好像還是不行耶!
LenB("12345")=10
LenB("一二三四五")=10 too!!!
HELP!救救我吧!!!!
--
SongYY上
--
※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: dial133.20365191.gcn.net.tw

嵐雲

unread,
Aug 29, 1998, 3:00:00 AM8/29/98
to
==> 在 SongY...@bbs.cs.nthu.edu.tw (YY) 的文章中提到:
: ※ 引述《cBr...@bbs.ee.ntu.edu.tw (Art)》之銘言:
: > ※ 引述《SongY...@bbs.cs.nthu.edu.tw (YY)》之銘言:
: > LenB

: 好像還是不行耶!
: LenB("12345")=10
: LenB("一二三四五")=10 too!!!
: HELP!救救我吧!!!!
VB 用的不是 Ascii,Big5 (也就是英文 1byte, 中文 2byte),
而是用 unicode, 不管中文,英文,日文, 都是用 2byte!
只要是用 unicode 的系統都會如此, java 也是一樣!

Lang Lee

unread,
Sep 1, 1998, 3:00:00 AM9/1/98
to
EightCl...@csie.nctu.edu.tw (嵐雲) wrote:

============================================================
Lang Lee 李詩朗
Systex Corporation. 精業股份有限公司
Banking Department. 銀行資訊處
台北市重慶南路二段51號12樓
ICQ no. 8234540
TEL:886-2-23569008 ext 7915
FAX:886-2-23561344
Email:lan...@tpts1.seed.net.tw
la...@mail.systex.com.tw
============================================================

0 new messages