如何从VBA中的韩文字符串中提取字符 [英] how to extract characters from a Korean string in VBA

查看:289
本文介绍了如何从VBA中的韩文字符串中提取字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要从MS-Excel和MS-Access中的韩语单词中提取初始字符。
当我使用Left(한글,1)它将返回第一个音节,即한,我需要的是初始字符,即ㅎ。
有没有这样做的功能?或至少一个成语?



如果你知道如何从String中获取Unicode值,那么我可以从那里工作,但我确定我会重新发明轮。 (再次)

解决方案

我想你正在寻找的是一个字节数组
Dim aByte()as byte
aByte =한글
应该给你字符串中每个字符的两个unicode值$ /

Need to extract the initial character from a Korean word in MS-Excel and MS-Access. When I use Left("한글",1) it will return the first syllable i.e 한, what I need is the initial character i.e ㅎ . Is there a function to do this? or at least an idiom?

If you know how to get the Unicode value from the String I'd be able to work it out from there but I'm sure I'd be reinventing the wheel. (yet again)

解决方案

I think what you are looking for is a Byte Array Dim aByte() as byte aByte="한글" should give you the two unicode values for each character in the string

这篇关于如何从VBA中的韩文字符串中提取字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆