# Problem Setting Property

**URL:** <https://forum.radzen.com/t/problem-setting-property/2360>\
**Category:** Blazor Server\
**Created:** [January 13, 2020, 9:37pm UTC](https://forum.radzen.com/t/problem-setting-property/2360 "2020-01-13T21:37:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Pitchford](https://forum.radzen.com/user_avatar/forum.radzen.com/paul_pitchford/32/687_2.png) [@Paul\_Pitchford](https://forum.radzen.com/u/Paul_Pitchford)\
**Post date:** [January 13, 2020, 9:37pm UTC](https://forum.radzen.com/t/problem-setting-property/2360/1 "2020-01-13T21:37:49Z")

</div>

I think I may have found a bug but I'm not sure if I am using a reserved word I should maybe be avoiding.

I am currently creating CRUD pages for a table in the database called Poker\_Result. The add page Load event looks like this:

 ![image](https://forum.radzen.com/uploads/default/original/2X/b/bd7f66d139fbd2ca8c9dcd5af692e49d72bf0b97.png)

So as you can see it sets a property called `pokerresult` that the form is bound to for all it's properties.

I have a change method on another property that when the event fires needs to set another property on the form, however I'm running into a problem and I think it's to do with my table / form property having the word "result" in it (pokerresult).

When I choose Set Property and set the Name to pokerresult.Points, the code that is generated is:

 ![image](https://forum.radzen.com/uploads/default/original/2X/7/79461a59a71ccbddecc96c547b0589387d6d4c01.png)

Code generated:

```
        protected async System.Threading.Tasks.Task PositionChange(int args)
        {
            if (pokerresult.GameID > 0)
            {
                var getPointsResult = getPoints(pokerresult.GameID,pokerresult.Position);
                pokergetPointsResult.Points = getPointsResult;
            }
        }

```

pokergetPointsResult would be the equivalent of doing poker${result} in Radzen I think.

getPointsResult is the variable that would be used if I used ${result} as far as I can tell. So I think Radzen is mixing up the variables unless I'm either doing something wrong or should maybe be doing this in a different way.

The code that should be generated should look like this:

```
        protected async System.Threading.Tasks.Task PositionChange(int args)
        {
            if (pokerresult.GameID > 0)
            {
                var getPointsResult = getPoints(pokerresult.GameID,pokerresult.Position);
                pokerresult.Points = getPointsResult;
            }
        }

```

I've tested this theory by setting a property called paul.Points and indeed the code generated is `paul.Points = getPointsResult;`. And conversly, if I set it to something random like myresult.Points the code that is generated is `mygetPointsResult.Points = getPointsResult;`.

I know this is a little long winded but I hope you understand what I mean. If not let me know and I'll do my best to elabortate.

Thanks.

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [January 14, 2020, 7:04am UTC](https://forum.radzen.com/t/problem-setting-property/2360/2 "2020-01-14T07:04:48Z")

</div>

Hi @Paul_Pitchford,

Indeed having a "result" in the property name is currently confusing Radzen. Try using a different name until we find a fix for that.
