From: | David McMinn |
Date: | 15 Aug 2000 at 10:04:43 |
Subject: | Re: Renaming files |
Hi Tony
> All I did was change
> If NameFile(FileName$, FileName$+".Bkp")
> to
> If Rename_(FileName$, FileName$+".Bkp")
>
> and it's stopped working.
I've always had problems passing temporary strings (i.e. ones that are made up
on the fly during the function call) to OS functions. Its like the string gets
lost somewhere. Try this:
Fyle2$=FileName$+".Bkp"
If Rename_(&FileName$, &Fyle2$)
...
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie