How to use Tag method in PosSizer?
Author: GolfPlayer
Creation Date: 3/2/2020 6:32 PM
profile picture

GolfPlayer

#1
Hi Eugene!
I need yor help again :)
I try to use:
LastPosition.Tag=50;
in my code, but it causes error CS1061:
"int" does not contain a definition for "Tag". Could not find extension method "Tag" that takes the first argument of type "int" (using directive or assembly reference missing?)

What kind of library should I include in the code to use Tag method in PozSizer?
profile picture

Eugene

#2
Sergey, when you have doubt re: WealthScript methods consider making the QuickRef (F12 key) your starting point. In particular, it's the Tag Property section where you'll find a code sample that solves exactly this problem. You're missing a cast.
profile picture

GolfPlayer

#3
Eugene, could you help with this simple code?
I try to use your Position Options PosSizer and use "LastPosition.Tag"
But there is an error in the string #36 :(((
What is wrong?

CODE:
Please log in to see this code.
profile picture

Eugene

#4
Sorry, WSTL generated code is not supported on our forum.

If you carefully re-read post #2 above and follow my advice, you should get a working example. I've got nothing else to add.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).