Re: ByteArray to string

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Larry Serflaten" <serflaten@xxxxxxxxxxxxxx> wrote in message
news:u4WjcJ5iHHA.4768@xxxxxxxxxxxxxxxxxxxxxxx

"MP" <NoSpam@xxxxxxxxxx> wrote

'----- why does string variable not get reset each time through
loop?
'try to clear string variable for next loop...see if this fixes
problem with 04055-59
StrippedDirName = ""
'no even that does not clear variable...still have 59 stuck in
variable after "04055-59" entry

'try resetting other var
DirName = ""
'no that doesn't work either...how is this happening???
'---------- this is mysterious to
me ----------------------------------

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...:-)




.


Quantcast