Size of a ZClass string property
How do you get the size of a string property attached to a ZClass? I have tried (txtfrench being the string property) <dtml-in "objectValues(['bout projet'])"> <dtml-var title><br> <dtml-var txtfrench.getSize()><br> </dtml-in> but it does not work... Thanks in advance. Pierre Godefroy 52 rue des Archives 75004 PARIS FRANCE Tél. : +33 (0)1 42 74 46 05
Pierre Godefroy wrote:
How do you get the size of a string property attached to a ZClass?
I have tried (txtfrench being the string property)
<dtml-in "objectValues(['bout projet'])"> <dtml-var title><br> <dtml-var txtfrench.getSize()><br> </dtml-in>
but it does not work...
Hi, Pierre You want the length of the property, I think. <dtml-var "_.len(txtfrench)"> There are, however, several things that can cause errors in this situation. Post the error and traceback here if my solution does not solve your problem. -- Jim Washington
participants (2)
-
Jim Washington -
Pierre Godefroy