Formula language

hi,

I’ve a calculated text, which font is Courier. I want to have all the content of item “Auftrag_Personal” is being displayed like in a table, e.g.:

(The underscores mean spaces)

1223___dummy________dummy

32_____foo___________dummy

12322__dummy________foo

Following formula doesn’t work:

vListe:=@Explode(Auftrag_Personal;@NewLine);

sText:=@Implode(

           @Trim(@Word(vListe;"~~";1)) + @Repeat(" "; 11 - @Length(@Trim(@Word(vListe;"~~";1)))) +

		@Trim(@Word(vListe;"~~";2)) + @Repeat(" "; 13 - @Length(@Trim(@Word(vListe;"~~";2)))) +

		@Trim(@Word(vListe;"~~";3)) + @Repeat(" "; 20 - @Length(@Trim(@Word(vListe;"~~";3))))

;@NewLine);

sText

It displays:

1223 dummy dummy

32 foo dummy

12322 dummy foo

Somebody an idea ?

Thanks,

Bernd

Subject: Formula language

if this is on the web try putting

 before and 
after the field

or use "  " instead of " "

-Adam

http://www.NotesNinjas.com

http://www.AdFos.com

Subject: RE: Formula language

thank you for your response.the script runs on a client, not on the web.

Subject: RE: Formula language

I believe it is your outermost @Trim which is causing the problem. Notes Help says it will remove redundant spaces as well as leading and trailing spaces.

Subject: RE: Formula language

thanks for your answer, if I use the formula without @Trim, the script unfortunately doesn’t work.

Subject: RE: Formula language

Perhaps you just need to rearrange - add your spaces after you have imploded the values.