Link to home
Start Free TrialLog in
Avatar of BillTr
BillTr

asked on

lotus script - pulling an item directly into an array

I have an action that pulls data from forms in a view. One of the fields I pull is a list of names. Currently I pull these into a delimited string first then into an array where I sort. This code is duplicated for a couple of other fields. I think I s/b be able to pull directly from the field into the array, since I am pulling it from a notesitem to start with, and speed things up. Assuming I am correct could someone provide an example?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BillTr
BillTr

ASKER

Is there a way to get the last position (or last value) in the array/variant without looping through and counting them?


For i= 0 To Ubound(array)
Avatar of BillTr

ASKER

Isn't this is just another loop?  I was trying to get the count of records in the array without looping.
Not possible?


It's the function Ubound(array), but I decided to give you an example (lack of time, very sorry, and now you gave me a B...)
Avatar of BillTr

ASKER

I did end up using this and I like it. I tried to up the rating, let me know if it doesn't take.


Thanks!!!!
No problem, don't worry. Next time better!