I've never done it this way, just by overriding those methods in the class definition containing the property, but I do know in that case Set has to take a value as an argument. Maybe it's not recognizing your Set method because it doesn't match the signature of the usual Set method. When you override it in a class, it looks like this:
In that case, Arg is the value that the process is trying to set the value of the property to. So it might have to be something like:
Method Set(Arg as %String){ S %val = "asd" Q 1}
Or if you wanted to some something with the input value, you could use Arg to do that?
- Log in to post comments