Click to See Complete Forum and Search --> : Unicode
smuehlfeld
April 9th, 2001, 06:27 AM
Hi,
I want to create a small tool with Visual Basic 6, with which I can input and output data in unicode-format.
But I don't know, how. For example, I have a textbox. And I want input in this textbox e.g. cyrillic letters, but it doesn't function.
Please help me.
Thanks
Sascha
Curt
April 9th, 2001, 07:15 AM
I found this in MSDN, I don't knoe if this is what your looking for but...
StrConv(string, conversion, LCID)
The StrConv function syntax has thesenamed arguments:
Part Description
string Required.String expression to be converted.
conversion Required.Integer. The sum of values specifying the type of conversion to perform.
LCID Optional. The LocaleID, if different than the system LocaleID. (The system LocaleID is the default.)
Settings
The conversionargument settings are:
Constant Value Description
vbUpperCase 1 Converts the string to uppercase characters.
vbLowerCase 2 Converts the string to lowercase characters.
vbProperCase 3 Converts the first letter of every word in string to uppercase.
vbWide* 4* Converts narrow (single-byte) characters in string to wide (double-byte) characters.
vbNarrow* 8* Converts wide (double-byte) characters in string to narrow (single-byte) characters.
vbKatakana** 16** Converts Hiragana characters in string to Katakana characters.
vbHiragana** 32** Converts Katakana characters in string to Hiragana characters.
vbUnicode 64 Converts the string toUnicode using the default code page of the system.
vbFromUnicode 128 Converts the string from Unicode to the default code page of the system.
Curt
smuehlfeld
April 9th, 2001, 07:41 AM
Hi Curt,
I tried it with the strconv-statement, but it doesn't function.
Here is a part of the code :
Do Until Test_1_Tab.EOF
T1 = StrConv(Test_1_Tab!Name, vbUnicode)
List1.AddItem (T1)
Test_1_Tab.MoveNext
Loop
I have a database with unicode-data, and I want to illustrate it in a listbox.
Please help me. It's urgent.
Sascha
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.