Re: Path separators...final

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

don cole wrote:
> 
> Hello Al, sorry it took so long.\
> 
> I had to go back to you original post on this and reread it.
> 
> This is what I came up with.
> 
> }}}
<eucode>
> 
> 
> constant symbal={"`","*","~","@","&"}
> 
>    if findAccent then
>       for x=2  to length(symbal) do
>         tt=testForSymbal[x]
>            if tt=0  then
>             newPath[1]= symbal[x] & replaceAccentsWithSymbal(x) & symbal[x]
>             newPath[2]= symbal[x]
>             exit
>            end if
>     else
>         newPath[1]="`" & line & "`"
>         newPath[2]=symbal[1]
>     end for
>    end if
> 
> Don Cole

Hi there Don,

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'

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

where there is only one path entered by the user.

Here's a strange but valid possibility for the line:

  "c:\my dir\my file.exe" -'a'-'b'-'c'

The delimiter form im using right now (just for now) is this:

  ;"c:\my dir\my file.exe" -'a'-'b'-'c';

where there is a semi before and after the entire line, so that the
user can enter two paths:
  ;mypath1 -args;;mypath2 -args;


Also thought about

  Þmypath1Þmypath2Þ  --see how this shows up on EuForum :)

but dont want to force the user to have to use ALT-Numb codes.



Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

 From "Black Knight":
"I can live with losing the good fight,
 but i can not live without fighting it".
"Well on second thought, maybe not."

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

Search



Quick Links

User menu

Not signed in.

Misc Menu