Antwort: Macro language question
Posted by
Joachim Wesner on
Jun 08, 2008; 9:51pm
URL: http://imagej.273.s1.nabble.com/Macro-language-question-tp3695997p3695998.html
Hi Wo,
as in Java, in a script the "+" operator is overloaded to concat strings
and numbers will automatically be converted to strings, so you can simply
do
for (i = 0; i < n; i++) { // Or similar
...
name = "file"+i+".txt";
...
}
Cheers
Joachim
ImageJ Interest Group <
[hidden email]> schrieb am 08.06.2008 23:08:14:
> Dear experts,
>
> I would like to use the loop variable of a for...next construct as
> part of a filename, which should look like file[number].txt
>
> How to achieve that? Is there something like the STR$(var) command
> from BASIC to convert numbers into strings?
>
> Many thanks,
>
> Wo
>
>
> --
> GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
> Jetzt dabei sein:
http://www.shortview.de/?mc=sv_ext_mf@gmx______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________