Name function is stripping characters

M

mcnews

this problem was brought to my attention by the person i developed it
for.
he discovered it on his PC and the same thing happens on mine.
we both use NAV but different versions.
i will try it, but don't expect much.
i plan to try to execute a DOS rename or copy when i can figure out the
syntax.
somebody posted something that worked for them, but i haven't had a
chance to try it.
i did try rename and copy in a command window and no problems.
 
M

mcnews

what a dope!
it took several looks at the before and after data to catch it.
it looked like it was doing it on the second pass because no data was
replaced
on the first pass because i was using the same test data each time.

here's what i had to do to fix:


txtFile.WriteLine (strPSFile)
Line Input #1, strPSFile
'''''-> i had to write the input line right after reading it.
txtFile.WriteLine (strPSFile)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top