[AccessD] Populating a form with attributes of a class

Michael R Mattys michael.mattys at adelphia.net
Tue Mar 25 14:21:29 CST 2003


Since forms and controls are classes
(and may be expressed as WithEvents Classes)
there is no reason that you cannot Open a New form class
with a New person, a car, a network, or whatever.

If you get the form's HWnd in Class Init, you can set it's control's
values to whatever you like. No?

Michael R. Mattys
www.mattysconsulting.com

----- Original Message -----
From: "Arthur Fuller" <artful at rogers.com>
To: "AccessD" <AccessD at databaseadvisors.com>
Sent: Tuesday, March 25, 2003 10:54 AM
Subject: [AccessD] Populating a form with attributes of a class


> Suppose I have a class that represents a person, a car, a network,
whatever.
> What would you suggest is the best way to present the attributes of an
> instance of said class on a form? Somehow the form has to be able to see
the
> object. Pass its name and then derefence it inside the form_open()? It's
> simple enough in debug.print because you can deal with the object as an
> object and just interrogate it.
>
> I don't want to declare a global because there could be any number of
them.
> Any suggestions, you object guys?
>
> "Prediction is difficult, especially of the future."
> - Werner Heisenberg
>
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com



More information about the AccessD mailing list