Re: Path separators...final

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

don cole wrote:
> 
> Hello Al,
> 
> Could you use the accent?
> Check the path for accents.
>  If there are no accents then 
>    go ahead on.
>  elsif there are accents then
>     check path for a star.
>     If there are no stars then 
>       replace all accents with stars.
>      Put the accents in as delimiters.
>      Do your business then replace stars with accents.
>     elsif there are stars then
>        check for ampersands, ats, tiltas, etc until you find a symbal      
>  that's  not there. Then continue as with the star above.
> 
> Just a thought . Maybe too much work.
>     
> 
> Don Cole

Hi there Don,


I like the sound of your idea, but until we can say go/nogo i think
we have to put your idea into a more concise form...

I'll start and then you finish it ok?

we start with a line of text, not a path (change this line if you like):

  c:\mydir\my file.exe (puts accents, stars, whatever you like in)

Now start the routine:

if AccentsFound then
  --do this

else
  --do this instead

end if


Feel free to use pseudo function names like "AccentsFound", "StarsFound",
etc., but keep the if/then/else statements concise ok? Thanks :)
I'll be able to understand your idea better like this.
Thanks again.


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