Andy1
asked on
Using Internet Transfer Control the GetChunk returns 'junk' data
I'm working in access 2003 using the Microsoft Internet Transfer Control ActiveX control and I've run the
Execute.DIR myfile
to see if a file exists on the site...
using the GetChunk to get the returned data I am getting the file name of the file (when it exists) followed by four squares (unknown symbols?) of junk data.
if display the results in a msgbox the junk characters dont print, but how do I remove them so i can evaluate the data in code?
I dont want to just remove the last 4 characters, cause i dont know what they are or if there will always be just 4 junk characters?
In VB I would use something like:
RetreivedData = Left$(RetreivedData , InStr(1, RetreivedData , Chr$(0)) - 1)
But that doesn't seem to want to work for me...
Any help greatly appreciated :)
Cheers,
`Andy
Execute.DIR myfile
to see if a file exists on the site...
using the GetChunk to get the returned data I am getting the file name of the file (when it exists) followed by four squares (unknown symbols?) of junk data.
if display the results in a msgbox the junk characters dont print, but how do I remove them so i can evaluate the data in code?
I dont want to just remove the last 4 characters, cause i dont know what they are or if there will always be just 4 junk characters?
In VB I would use something like:
RetreivedData = Left$(RetreivedData , InStr(1, RetreivedData , Chr$(0)) - 1)
But that doesn't seem to want to work for me...
Any help greatly appreciated :)
Cheers,
`Andy
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, that was it exactly!!
Cheers!
Cheers!
http://www.vb-helper.com/howto_inet_getchunk.html