0

I have a form, in VS code editor, I declare an amount type right in the beginning with below code

"Amount X;"

Then in its Datasource, in method validateWrite(),

I have a line "X = element.aFunction();"

When I debug to the line above and try to add a watch to the value of X the debugger says "error CS0120: An object reference is required for the non-static field, method, or property".

Any way to let me see its value?

Jan B. Kjeldsen
  • 17,817
  • 5
  • 32
  • 50
prodev42
  • 6,389
  • 8
  • 32
  • 35

1 Answers1

0

Someone posted an answer to this question elsewhere:

"Add "element" to watch and expand it. THere you should be able to see "X" and its value."

prodev42
  • 6,389
  • 8
  • 32
  • 35