>Dear Experts
>
>There is folder named accounts in the following location
>D:\Projects\vfp\office\accounts
>How to get last folder name as
>
>Lastfolder=accounts
>
>Please help
One simple way would be to use RAT function, e.g.
LastFolder = substr(m.lcFullPath, rat('\', m.lcFullPath) + 1)
If it's not broken, fix it until it is.
My Blog