在使用uipath编写自动化时,有没有办法查看一些代码? 我在 UiPath Studio 中有以下内容:
有没有办法查看 c# 中类似的代码或类似的代码:
Sub Main
Dim year as Integer
year = InputBox()
If year mod 4 = 0 Then 'the rule for leap year is a bit different.
MsgBox "It is leap"
Else
MsgBox "It is not leap"
End If
End Sub
我浏览了互联网,但到目前为止我只找到了用于创建盒子的 XAML 代码。我的逻辑(或希望)是,如果 UiPath Studio 使用 VB 表达式,那么应该可以看到生成的代码:
最佳答案
UiPath Studio 自动将图表“翻译”为 xaml :
因此,上图的 XAML 代码如下所示:
<Flowchart.Variables>
<Variable x:TypeArguments="x:Int32" Default="2013" Name="year" />
</Flowchart.Variables>
<Flowchart.StartNode>
<x:Reference>__ReferenceID3</x:Reference>
</Flowchart.StartNode>
<FlowDecision x:Name="__ReferenceID2" Condition="[year mod 4 = 0]" sap2010:WorkflowViewState.IdRef="FlowDecision_1">
<FlowDecision.True>
<FlowStep x:Name="__ReferenceID0" sap2010:WorkflowViewState.IdRef="FlowStep_2">
<ui:MessageBox ChosenButton="{x:Null}" Buttons="Ok" Caption="It Is" DisplayName="Message box" sap2010:WorkflowViewState.IdRef="MessageBox_2" Text="It Is" TopMost="True" />
</FlowStep>
</FlowDecision.True>
<FlowDecision.False>
<FlowStep x:Name="__ReferenceID1" sap2010:WorkflowViewState.IdRef="FlowStep_4">
<ui:MessageBox ChosenButton="{x:Null}" Buttons="Ok" Caption="It Is Not" DisplayName="Message box" sap2010:WorkflowViewState.IdRef="MessageBox_4" Text="It Is Not" TopMost="True" />
</FlowStep>
</FlowDecision.False>
</FlowDecision>
关于c# - 如何访问 UiPath 中使用的 .NET 代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52150079/