Lifetime of local buffers in STATIC methods

Posted by Simon L. Prinsloo on 06-Oct-2014 06:28

If I define a local buffer in a STATIC METHOD, which I then invoke from the STATIC CONSTRUCTOR, will the buffer go out of scope / be destroyed once the method returns to the contsructor?

Posted by Mike Fechner on 06-Oct-2014 06:40
If it’s a buffer inside a method and not class wide (DEFINE STATIC BUFFER bCustomer FOR Customer) then it’s supposed to go out of scope when the method ends.

All Replies

Posted by Mike Fechner on 06-Oct-2014 06:40
If it’s a buffer inside a method and not class wide (DEFINE STATIC BUFFER bCustomer FOR Customer) then it’s supposed to go out of scope when the method ends.

This thread is closed