Use of unassigned variable?

前端 未结 5 1002
Happy的楠姐
Happy的楠姐 2021-01-26 19:04

I\'m getting the error use of unassigned variable \"ps\" when declaring if paymentstatus is null or has value in the \"if\" statement. I\'m thinking that i allready declared ps

5条回答
  •  后悔当初
    2021-01-26 19:21

    Yes, you did declare the variable.

    Yet it says "unassigned" not "undeclared", and you didn't assign any value to the variable. Just set it to null.

提交回复
热议问题