Re: substring
Posted by
Gluender-2 on
Oct 01, 2008; 4:08pm
URL: http://imagej.273.s1.nabble.com/substring-tp3694891p3694892.html
>Hello,
>
>I have problems with substring or I don´t get the definition.
>*
>substring(string, index)*
>Returns a substring of *string* that begins at *index* and extends to the
>end of *string*.
>
>Assume that this is dir: C:\Dokumente und Einstellungen\Johannes Breu\Eigene
>Dateien\Platz\Images\IN12/Image0006.tif
>
> m=dir;
> u="Images";
> n=substring (m,u);
> print(n);
>
>Now I expect n=Images\IN12/Image0006.tif
>
>Instead of this I get an error message:
>n=substring (m,u<)>;
>
>What´s wrong?
Just read the current manual "Built-in Macro Functions " carefully:
substring(string, index1, index2)
Returns a new string that is a substring of string.
The subegins at index1 and extends to the character at index2 .
HTH
--
Herbie
------------------------
<
http://www.gluender.de>