|
-
October 2nd, 2001, 03:55 PM
#1
Convert Binary text to regular text
How do you convert a binery text to a regular text?
-
October 2nd, 2001, 04:53 PM
#2
Re: Convert Binary text to regular text
I'm not sure I understand what you mean... if you are trying to do this for string comparisons you can add the line..
option Compare Text
...to the top of your module. then all text being compared is used case-insensitive as opposed to the case-sensitive "Option Compare Binary". I hope this is in the right direction of what you are looking for! good luck!
jeff
-
December 3rd, 2001, 06:44 AM
#3
Re: Convert Binary text to regular text
Here you find Iouri make it reverse (from text to binary). You can reverse it to get what you want:
http://codeguru.com/cgi-bin/bbs/wt/s...age=0&Limit=25
However, if binary number is ascii number, after you convert it in decimal, simply pass it to CHR() function...
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
The Rater
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
-
December 3rd, 2001, 06:47 AM
#4
Re: Not number but text!
Sorry, I did not see it was "binary text". Did you mean how to read a binary file? Here is the solution:
http://codeguru.com/cgi-bin/bbs/wt/s...age=0&Limit=25
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
The Rater
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
-
December 3rd, 2001, 07:38 AM
#5
Re: Convert Binary text to regular text
You can use the StrConv function to do that, which can convert a byte array to a string, or the other way around. For that, you must specify the vbToUnicode of vbFromUnicode parameter.
Tom Cannaerts
[email protected]
Moderator on http://www.vbcodelibrary.co.uk/board
A bottomless pit, I'm sure it came with the place, who would dig one on purpose?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|