[转]Have a query in Blue prism coding stage and collection stage.

Posted freeliver54

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[转]Have a query in Blue prism coding stage and collection stage.相关的知识,希望对你有一定的参考价值。

本文转自:https://www.rpaforum.net/threads/have-a-query-in-blueprism-coding-stage-and-collection-stage.488/

 

 

问:

Hi,
i have some values got through for loop using code stage, like 1,2,3,4,5.
ex: for (i=1; i<=5;i++)
{
Console.WriteLine("{0}", i);
}
How would we get these values as out put into blueprism collection stage???

 

答:

If output collection stage is collectionOutput then

Code:
Dim table As New DataTable
table.Columns.Add("Number", GetType(Integer))

For i As Integer = 1 to 5 Step 1
table.Rows.Add(i)
Next

collectionOutput = table

Hope this works fine.

 

------

 

In c#:

If output collection stage is collectionOutput then

Code:
DataTable table = new DataTable();
table.Columns.Add("Number", typeof(int));

for(int i=0; i<5; i++)
{
table.Rows.Add(i);
}

collectionOutput = table;

Note: Add System.dll in external references and System.Data in namespace imports if we are using collections with C#.

以上是关于[转]Have a query in Blue prism coding stage and collection stage.的主要内容,如果未能解决你的问题,请参考以下文章

ERROR: Field 'PostId' doesn't have a default value Exception in thread "main"

[转]MS Excel VBO option missing in Blue Prism

解决Centos关闭You have new mail in /var/spool/mail/root提示(转)

解决Centos关闭You have new mail in /var/spool/mail/root提示(转)

[转]Blue Prism Interview Questions and Answers

[JSOI2008]Blue Mary开公司