Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default UNICODE strings

Hello,

I have an sheet with 3 columns (ID, english text, chinese text).

In a loop i go through all the rows and try to get english and chinese text
values using Str() fuction.

It works good with english text but not with thechinese one (it looks like
"????").

Any ideas ?

Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 968
Default UNICODE strings

try Cstr() rather than Str()


Charles
______________________
Decision Models
FastExcel 2.1 now available
www.DecisionModels.com

"Petr Pavelka" wrote in message
...
Hello,

I have an sheet with 3 columns (ID, english text, chinese text).

In a loop i go through all the rows and try to get english and chinese
text
values using Str() fuction.

It works good with english text but not with thechinese one (it looks like
"????").

Any ideas ?

Thanks.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default UNICODE strings

Sorry, I am the beginner.

Shall I use something like:

CStr(Range("C3").Value)

This doesn't solve my problem. I need to get numeric (byte) representation
of the chinese string from cell 'C3'.

Thanks.

"Charles Williams" wrote in message
...
try Cstr() rather than Str()


Charles
______________________
Decision Models
FastExcel 2.1 now available
www.DecisionModels.com

"Petr Pavelka" wrote in message
...
Hello,

I have an sheet with 3 columns (ID, english text, chinese text).

In a loop i go through all the rows and try to get english and chinese
text
values using Str() fuction.

It works good with english text but not with thechinese one (it looks

like
"????").

Any ideas ?

Thanks.






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 968
Default UNICODE strings

Not sure what you are looking for: If what you want is the unicode numbers
corresponding to the unicode string then assign it to a byte array.

Dim arrBytes() As Byte

arrBytes=range("C3").value

This will give you two array elements for each character. the two array
elements contain the two Unicode bytes.


Charles
______________________
Decision Models
FastExcel 2.1 now available
www.DecisionModels.com

"Petr Pavelka" wrote in message
...
Sorry, I am the beginner.

Shall I use something like:

CStr(Range("C3").Value)

This doesn't solve my problem. I need to get numeric (byte) representation
of the chinese string from cell 'C3'.

Thanks.

"Charles Williams" wrote in message
...
try Cstr() rather than Str()


Charles
______________________
Decision Models
FastExcel 2.1 now available
www.DecisionModels.com

"Petr Pavelka" wrote in message
...
Hello,

I have an sheet with 3 columns (ID, english text, chinese text).

In a loop i go through all the rows and try to get english and chinese
text
values using Str() fuction.

It works good with english text but not with thechinese one (it looks

like
"????").

Any ideas ?

Thanks.








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
find and replace numeric strings in larger text strings Mr Molio Excel Worksheet Functions 8 November 9th 11 05:17 PM
How to find number of pairs of strings from list of strings? greg_overholt Excel Worksheet Functions 5 January 27th 06 10:42 PM
Exporting CSV file to unicode .txt file - " around strings Paul Excel Discussion (Misc queries) 1 June 14th 05 12:27 AM
Finding strings within strings Rod[_6_] Excel Programming 1 December 2nd 03 05:34 PM
Finding strings within strings Rod[_6_] Excel Programming 1 December 2nd 03 05:19 PM


All times are GMT +1. The time now is 02:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"