Outputs Property

The Outputs property is a collection of outputs that the specified transaction returns.

App.Repository.Transactions(0).Outputs as Integer

Use

This property is useful if you wish to know how many outputs a transaction returns or what those outputs are.

To return the number of outputs for the first transaction in your collection you would use the following:

App.Repository.Transactions(0).Outputs.Count

To return the name of the first Output for the same transaction:

App.Repository.Transactions(0).Outputs(0)

To return a transaction's various output in a VB script:

result = App.PlayTransaction ("TransName", "Input1", "Input2")

output1 = result(0)

output2 = result(1)

To return a transaction's various output in a JScript:

var result = App.PlayTransaction ("TransName", "Input1", "Input2");

var returnArray = result.toArray();

var output1 = returnArray[0];

var output2 = returnArray[1];

Referencing individual members of the collection

You can reference an individual item within any Newlook collection by using its Index. All indexes in Newlook are zero-based therefore if you wanted to return the third item in the collection you would use the following syntax:

object.collection(2)

See Also

Inputs Property | Objects and Controls | Transaction collection | How to record a transaction

Applies To

Transaction object


© 2004-2021 looksoftware. All rights reserved.