Re: ByteArray to string
- From: "MP" <NoSpam@xxxxxxxxxx>
- Date: Tue, 1 May 2007 07:56:36 -0500
"Larry Serflaten" <serflaten@xxxxxxxxxxxxxx> wrote in message
news:u4WjcJ5iHHA.4768@xxxxxxxxxxxxxxxxxxxxxxx
loop?
"MP" <NoSpam@xxxxxxxxxx> wrote
'----- why does string variable not get reset each time through
problem with 04055-59'try to clear string variable for next loop...see if this fixes
variable after "04055-59" entryStrippedDirName = ""
'no even that does not clear variable...still have 59 stuck in
me ----------------------------------
'try resetting other var
DirName = ""
'no that doesn't work either...how is this happening???
'---------- this is mysterious to
At first glance you may be attacking the wrong variables. Consider:
Cont = FindNextFile(hSearch, WFD) 'Get next subdirectory.
DirName = WFD.cFileName
Perhaps its the cFileName variable you should try clearing???
LFS
exactally :-)
yes I finally came to that suspicion
I had just assumed the api would automatically clear it's own variable in a
FindNext loop
however when I got to that point I reposted this on the api side and sure
enuf Jim Mack made the same suggestion
fwiw
Erase WFD.cFileName worked
Thanks
and thanks again for talking me into redefining my "FileSystem"class into
cFile and cFolder objects
I'm revamping that giant bloated mess and I'm feeling much better about life
these days <vbg>
I think my teeth are even a little whiter and my beard a little less...:-)
.
- References:
- Re: ByteArray to string
- From: Larry Serflaten
- Re: ByteArray to string
- Prev by Date: Re: Any REAL reason to use ADO vs. DAO?
- Next by Date: Re: Any REAL reason to use ADO vs. DAO?
- Previous by thread: Re: ByteArray to string
- Next by thread: Re: Polling a DB for updates
- Index(es):