Access and assign values of SSRS report variables from SSRS data method

Hi All,

How can access and assign values of SSRS report variables from SSRS data method?

What do yo mean by that?

May be you can explain with an example.

I create a report variable (debit) from Report properties->Variables and make it’s Read-Only property unchecked.

After that I go Data Methods, create a new one. I want to read and change value of that variable from this method. How can I access my variable? I tried to use debit = 22; It gives red line.