Getting the maximum characters for a WebList objec
For a webEdit field I have been getting the max number of characters that can be entered using GetROProperty("max length"). There is no corresponding runtime property for a webList field from what I can see. What is the best way to validate the maximum number of characters that can be entered into a webList field.
Will WebList("AAA").Object.attributes.length give the length of the WebList. When I use this it gives me an answer of 84 where the spec says the field length should be 50 so I just want to check that this is the correct way to do it before raising a defect.
Unfortunately the weblist can only be populated by selected an item so I cannot just manually type text in there until it wont accept anymore and to confirm the result
Re: Getting the maximum characters for a WebList objec
I'm not aware of a maximum value you can retrieve for a weblist. I would query with the dev team whether they can specify a maximum length value for a weblist (they might, but I'm not sure).
Another approach might be to implement a function with the following logic:
<font class="small">Code:</font><hr /><pre>
for each list item
capture the string
use the len function to verify it is not longer than 50