lcReturn='' #Define crlf chr(13)+chr(10) For x=1 to Getwordcount(lcPath) lcReturn=lcReturn+crlf+replicate(' ',2*(x-1))+getwordnum(lcPath,x,'\') Endfor Return lcReturn>Hi all.
>If fullpath is: >"Asset\Current Assets\Bank & Cash\Bank\HSBC" > >Output required: > >"Asset > Current Assets > Bank & Cash > Bank > HSBC" > > >If fullpath is: >"Asset\Current Assets\Bank & Cash\Bank" > >Output required: > >"Asset > Current Assets > Bank & Cash > Bank" > >and so on........... >>