Simple one

Hi

i have one form, that is using for exaple Week1,week2,…uptop week52

so how can i do assign them in for loop

for example for = i = 1 to 52 step 1

                    i = i +1

                   item = doc.Week(i)

but i think is wrong

will u please help me in this regard

Regards

DEVs’’

Subject: Simple one

To get the NotesItem objects…

for = i = 1 to 52

set item = doc.GetFirstItem(“Week” + cstr(i))

’ Do something with the Item

next i

To get the first value from each of the items…

for = i = 1 to 52

itemVal = doc.GetFirstItem(“Week” + cstr(i)).Values(0)

’ Do something with the Item Value

next i

To loop through each of the values in each item (if they’re multi-value)…

for = i = 1 to 52

set item = doc.GetFirstItem(“Week” + cstr(i))

forall itmVal in item.Values

’ Do something with the item value

end forall

next i

or…

for = i = 1 to 52

set item = doc.GetFirstItem(“Week” + cstr(i))

for x = 0 to ubound(item.Values)

itemVal = item.Values(x)

’ Do something with the item value

next x

next i