[Javascript] Conversions of variant type...better explanation ...

Filipiak, Bob (Contractor) filipiab at atsc.army.mil
Thu May 3 08:19:11 CDT 2001


Now that sheds some light. Why are you trying to search binary files? Use
notepad.exe and open a executable binary file and see what you get. Usually
a lot of unprintable characters and occasionally you will see readable text
where literals have been stored.
 

Bob Filipiak (Contractor)
MCP 

-----Original Message-----
From: Carlos [mailto:carlos at unica.cu]
Sent: Thursday, May 03, 2001 10:07 AM
To: javascript at LaTech.edu
Subject: [Javascript] Conversions of variant type...better explanation...


Well, sorry for my hurriness...
 
I'll try to explain the problem again, according to what you said to me,
let's see...
 
I'm trying to perform a search in a directory, this search is inside files,
but there are text files and binary files, so what did I do, I treated all
the files as binary files and tried to read its contents, but the problem is
that when I use the ADODB.Stream.Read(numBytes) function, it returns a
variant type (that's what all references of ASP say) and I thought that I
could perform the search very well if I converted the variant type to a
string data type...but...the variant type doesn't seem to appear "as is" in
my Javascript's tutorial...so, my question is related to that conversion,
but maybe anyone owns a better way of doing this search, so I accept it
too...
 
I'm interested in this conversion, cause maybe (if the conversion variant -
string is possible) you can convert any variant type to a byte or an
integer.
 
I guess that, this is my real problem...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010503/7858c5c6/attachment.htm>


More information about the Javascript mailing list