Count field elements in LS

I have a form that opens a popup and there I have a text field that accepts multi values. I want to be able to count how many entries are in the field but every thing I try is not working. This is on the query close event. I know I can display the values doingMsgbox uidoc.FieldGetText( “dlgSerialNo” ).

I have tried evaluate and other things but always get type mismatch.

Thanks

-pa

Subject: Count field elements in LS

On the popup form include a computed or computed-for-display field with the formula, @Elements(MyField).

Subject: Count field elements in LS

Assuming they are separated by some known character, such as a comma, use the LotusScript Split method and the UBound method to find out how many.