Hi All,
I have a multiple values field. I would like to add in the value into the field, for example field A. How can i do this?
Why I can’t just assign doc.A(lastrow) = “New Value”?
Thanks a lot.
Hi All,
I have a multiple values field. I would like to add in the value into the field, for example field A. How can i do this?
Why I can’t just assign doc.A(lastrow) = “New Value”?
Thanks a lot.
Subject: How to append Array?
Have a look at;Call notesItem.AppendToTextList( newValue )
Subject: How to append Array?
Have a look at the Vector class at:http://dev.kanngard.net/Permalinks/ID_20020506204851.html
Subject: How to append Array?
Use
Call doc.GetFirstItem(“multi”).AppendToTextList(“5th”)
if you want to append one value
or
Dim values As Variant
values = doc.multi
Redim Preserve values(Ubound(values)+1)
values(Ubound(values)) = “6th”
doc.multi = values
if you want to modify the list, e.g. you might want to sort the list before reasigning the item.
Subject: What about arrayappend function?
SyntaxArrayAppend( sourceArray1, sourceArray2 )
Elements
sourceArray1
Any variant containing an array.
sourceArray2
Any variant containing an array.
Return value
A variant containing an array.
Usage
During this operation sourceArray1 and sourceArray2 are not modified. If the two arrays are arrays of matching types, the returned array will be of that type. Otherwise, the returned array will be an array of Variants. The lower bound of the returned array is the same as the lower bound of sourceArray1, and the upper bound is the combined total of sourceArray1 and sourceArray2.
For example:
sourceArray1(1 to 5) = [1,2,3,4,5]
sourceArray2(1 to 8) = [1,3,6,9,12,15,18,21)
returned array (1 to 13) = [1,2,3,4,5,1,3,6,9,12,15,18,21)