On compiling I have an error (full log in the attachement), about the left bracket ‘[’ after the “return SNew(STableRow>, ownerTable)” statement was not matched correctly. But, as you can see, it is matched correctly.
If I remove the lambda statement of the Button OnClicked event, everything begins to compile correctly. So, I assume, that the parser is having problem with the lamdas capture list brackets, mistaken them with the slate content brackets.
c:\program files\epic games\4.7\engine\source\runtime\core\public\delegates\Tuple.h(113): error C2064: term does not evaluate to a function taking 0 arguments
You’ve called the lambda with the parameter artifact, so you’re actually passing the return value of that lambda, FReply, into OnClicked_Lambda.
If you want to bind artifact as a parameter, you’ll have to use the full delegate creation syntax (you can normally avoid this, however we don’t have the Slate syntax sugar setup for lambdas as you typically just capture your data in them rather than use delegate bindings).
Thank you very much for your help! I really appreciate the active support here
The suggested CreateLambda func hadn’t really worked (got me ‘error C2661: … no overloaded function takes 2 arguments’ at compilation), but the CreateStatic worked just fine.