Login  Register

substring

Posted by Johannes Breu on Oct 01, 2008; 3:57pm
URL: http://imagej.273.s1.nabble.com/substring-tp3694891.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?