Hi, I want to use my variable in function(x) , like MyVarible = 2
Enumerable.Range(1, 10).ToArray().Reverse.Select(Function(x) x*k)
it will throw an error:
For Each: An ActivityContext can only be accessed within the scope of the function it was passed into.
Object name: ‘System.Activities.CodeActivityContext’.
If I use 2 not k, Workflow can work fine.
Does anyone know this problem? thanks.
Enumerable.xaml (5.5 KB)