You are on page 1of 2

IArrayOfStringExpr

Pgina 1 de 2

IArrayOfStringExpr
Array of fixed string expression objects

Method Detail
Add
Add()

Adds an element to array.


Earliest version:
6.0x
Example:
rem create new alert with mail
set docprop = ActiveDocument.GetProperties
set al = docprop.Alerts
al.Add
no = al.Count-1
al.Item(no).Action.Id = "AL04"
al.Item(no).Action.Message.v = "Hello world!"
al.Item(no).Action.MailRecipients.Add
no2 = al.Item(no).Action.MailRecipients.Count-1
al.Item(no).Action.MailRecipients.Item
(no2).v = "santa.claus@northpole.gov"
al.Item(no).Action.MailSubject.v = "Alert: Hello world!"
al.Item(no).Comment = "New alert"
al.Item(no).Condition.AllClear = false
al.Item(no).Condition.BookmarkId = "BM01"
al.Item(no).Condition.Condition.v = "sum(Sales)>Sum(Budget)"
al.Item(no).Enabled = true
al.Item(no).Triggers.Interactive = true
al.Item(no).Triggers.OnPostReload = true
ActiveDocument.SetProperties docprop

RemoveAt
RemoveAt(Integer Index)

Removes an item from array.


Parameters:
Index (Integer) : Index of item to remove (0 based)
Returns:
No return value
Earliest version:

file:///C:/Users/Opss/Downloads/QlikViewAPI_html/IArrayOfStringExpr.htm

18/03/2016

IArrayOfStringExpr

Pgina 2 de 2

6.0x
Example:
rem remove first mail recipient from first alert in document
set docprop = ActiveDocument.GetProperties
set al = docprop.Alerts
al.Item(0).Action.MailRecipients.RemoveAt(0)
ActiveDocument.SetProperties docprop

Property Detail
Count (Integer, read-only)
Returns number of elements in array.

Item (IStringExpr, objectref.)


Returns an object of type IStringExpr.
Returns a string expression object.
Note! Default member, returned if no member specified for an object of this
class.

file:///C:/Users/Opss/Downloads/QlikViewAPI_html/IArrayOfStringExpr.htm

18/03/2016

You might also like