Hello Aparajita

Thanks for the tip.
But to understand the Format operator a little bit more, it would be useful to 
understand how choice formats works in Active4D.
And if there are more features from the ICU Library which could be useful 
there. 

Regards, Oliver


Am 07.04.2010 um 18:47 schrieb Aparajita Fishman:

>> I need something like this.
>> 
>> $format:="<tr><td>{0}</td><td>{1}</td><td>{2}</td></tr>"
>> 
>> write($format %% ( "abc";"";"xyz" ))     //->   
>> "<tr><td>abc</td><td>-</td><td>xyz</td></tr>"
>> 
>> The condition is: IF value is empty take  "-" ELSE take the value.
> 
> Use 'param text' instead of %%.
> 
> $format := "<tr><td>#1#-#^1#</td><td>#2#-#^2#</td><td>#3#-#^3#</td></tr>"
> write(param text($format; "abc"; ""; "xyz"))
> 
> Kind regards,
> 
>   Aparajita
>   www.aparajitaworld.com
> 
>   "If you dare to fail, you are bound to succeed."
>   - Sri Chinmoy   |   www.srichinmoy.org
> 
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to