Re: Path separators...final

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hello Al,

To start with I made a mistake.
It should have been:

constant symbal={"`","*","~","@","&"}
------------this would be a function returing newPath
sequence newPath
newPath=repeat({},2)

if findAccent then for x=2 to length(symbal) do tt=testForSymbal[x] if tt=0 then newPath[1]= "`" & replaceAccentsWithSymbal(x) & "`" newPath[2]= symbal[x]this is the symbal used to replace the non

delimiter accents it will be used to replace non delimiter

accents later on exit end if end for else newPath[1]="`" & line & "`" newPath[2]=0this is 0 because no accents were replacedend end if


I 'think' i know what you are saying now, but one question i
have is...how do you know which 'accents' to replace, for example
in this line:

'c:\mydir\my'file.exe' How did the two end accents get in there at this point?

I thought about using the first char (ie the ' here) as delimiter,
which would allow different delims for different lines too, but
i want the UI to accept the non-delimiter form too like this:

c:\mydir\my'file.exe

This would come out 'c:\mydir\my*file.exe'

Don Cole }}}

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu