Yup each method returns "this", so it should return the current object. It is kind of weird because I can set the result of one method to new builder object, but cannot chain them.
Here is a pretty close example of what I am looking for written in java that I found.
public class User {...
That did work, kind of. I guess the end goal was to put this in as a parameter when a sandwich object is created and Foxpro didn't like when I used the with statement in there. anyway around that?
Hey guys,
I am pretty new to Foxpro and I was trying to make a simple class that implements the builder pattern. Everything seems to work fine except when I try to chain methods together. Is this something that is not supported by Foxpro? or maybe I am missing something?
Here is an example of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.