Tab didn't work in Macro

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Tab didn't work in Macro

Ye Chen
Hello,

I am writing a Macro. I found the tab character could not show up using the
function print() or write(). Instead it is a space. Is there anyone knowing
how to fix it in Macro. So the tab character can show up in either Result
Window or Log Window?

Thanks
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Tab didn't work in Macro

Ludgate, David
I haven't used the macro language, but in Java you use \t for tab and \n
for new line.
Look up escape characters for the macro language if that doesn't work
(but it probably will).
-dave

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Ye
Chen
Sent: Monday, August 08, 2005 12:09 PM
To: [hidden email]
Subject: Tab didn't work in Macro


Hello,

I am writing a Macro. I found the tab character could not show up using
the
function print() or write(). Instead it is a space. Is there anyone
knowing
how to fix it in Macro. So the tab character can show up in either
Result
Window or Log Window?

Thanks
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Tab didn't work in Macro

Ye Chen
Thanks. I tried different way to do it. Use \t in a string, or using
Unicode for tab, or using Macro function fromCharCode(value1, ..value n)
which takes unicode value and returns a string. None of them works. It all
shows space. Anyway, I find alternative way to produce a neat table by
using setResult("Column",row,value) function in Macro Language which puts
tab between values.

Ye



At 03:40 PM 8/8/2005, you wrote:

>I haven't used the macro language, but in Java you use \t for tab and \n
>for new line.
>Look up escape characters for the macro language if that doesn't work
>(but it probably will).
>-dave
>
>-----Original Message-----
>From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Ye
>Chen
>Sent: Monday, August 08, 2005 12:09 PM
>To: [hidden email]
>Subject: Tab didn't work in Macro
>
>
>Hello,
>
>I am writing a Macro. I found the tab character could not show up using
>the
>function print() or write(). Instead it is a space. Is there anyone
>knowing
>how to fix it in Macro. So the tab character can show up in either
>Result
>Window or Log Window?
>
>Thanks
Loading...