Andy Davies wrote:
Hi,
I am trying to build a small app using some oop (moral 1 don't try to be
too clever) and I'm having a couple of problems (moral 2 never build from
scratch - always start with something that already works):-
I want to create a data object to hold the input (define class mydata -
var1, var2, ...) but where do I define it? (I can't use the form.load or
the de.beforeopen which seemed like good places)
also in the form.load I create some arrays and a cursor to hold values for
listboxen &c. on the form, but where do I set the rowsource properties - if
I set them directly in their control properties or programmatically in the
control's init the arrays aren't yet in scope
same for the controlsources which I want to bind to properties of the data
object (when I get one)
I create a biz and data object (in a PRG with DEFINE CLASS
_bizObj/_DataObj as Custom). The form.load instantiates the _bizobj,
which in turn instantiates the _dataobj in it's init event. You can
download my ntier example and see the code. Check out Ed's Forum for
the link.
--
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
"Work smarter, not harder, with MBSS custom software solutions!"
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.