In my form I have a text where multiple values are allowed.I want to take handle of the multiple value
feild[0]—
field[1]—
…
…
field[n]----
how can i handle the multiple values of the field using script
How can i write the ls code to know n values in the multi value text field .
Regards
Sruthi
Subject: How can i write the ls code to know n values in the multi value text field
All fields in a NotesDocument (or Values property of a notes item) can be treated as an array.
To find how many elements there are in an array (i.e. values in the field you can use ubound. For example
Dim varField as variant
varField=doc.Field 'notice no (0)
Dim numvals as Integer
numvals=ubound(varField)+1 'we add 1 because arrays start from zero. You may not want to add one depending on what you will be using it for.
Subject: RE: How can i write the ls code to know n values in the multi value text field
Thanks Melissa it really solved my problem
Subject: RE: How can i write the ls code to know n values in the multi value text field
Glad it worked!