I fairly new to Powerbuilder and I came across the following.
Whenever I create an object in a constructor, I destroy this in the destructor (or in beforeClose or whatever).
The point is: I occasionally used the reserved keyword destroy:
destroy myObject
On another occasion I used:
destroy (myObject)
When I noticed this I tried to find out what the difference bewteen the two of them is. No luck though.
Does anyone know the difference?
My guess: use destroy for non-visual objects and destroy() for visual objects or the other way around. But why??
Thanks in advance.
Whenever I create an object in a constructor, I destroy this in the destructor (or in beforeClose or whatever).
The point is: I occasionally used the reserved keyword destroy:
destroy myObject
On another occasion I used:
destroy (myObject)
When I noticed this I tried to find out what the difference bewteen the two of them is. No luck though.
Does anyone know the difference?
My guess: use destroy for non-visual objects and destroy() for visual objects or the other way around. But why??
Thanks in advance.