Thursday, October 11, 2007

Simplifying Evaluate

I came across this tips from Tommy Valand site. Used it and loved it. I have even roll out on production application. He show a way to simplify getting the return value from evaluate function

Dim commonUsername As String
commonUsername = Implode( Evaluate( |@Name( [CN] ; @UserName )| ) )

Just becareful that you know the Evaluate return single value and not multiple value.

1 comment:

Yin-Phin Lim (颖斌林) said...

Yah, I use that a lot too, but I try to not have LotusScript and Lotus Formula in one script. Lotus Formula is harder to debugged.