Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Question About VB6 Business Objects


Message #1 by "Phil Perks" <philp@w...> on Sat, 1 Jul 2000 12:25:48
-----Original Message-----
From: Peter Conrey [mailto:pconrey@t...]
Sent: 28 June 2000 21:28
To: 'support@w...'
Subject: Question About VB6 Business Objects


I am working on a project that closely parallels the Video Store project
from Mr. Lhotka's book "VB6 Business Objects".  I have run into one small
issue that I would like a bit of advise on solving.

I have 2 classes that have a hierarchical relationship similar to the
"Tapes-Tape" objects' relationships (for your reference, the objects are
"BMCs-BMC".  BMC stands for "Bulk Mail Center").
The major difference is that one of the BMC object's properties is a
collection of 3-digit zip code prefixes.  Since these prefixes have only 2
properties (BMC-ID and Prefix), I don't feel they warrant being turned 
into
a separate object/collection.  I tried using the PropertyBag object to
serialize the BMC object's data into a single stream, but I'm not sure how
to make use of the Buffer object's concept using the PropertyBag.

My questions are:
	1.	Would it be a good idea to create a separate set of objects
to encapsulate the ZipPrefix object and ZipPrefixes Collection?  If so, do
you have any suggestions on maintaining
Parent-Child-Grandchild-GreatGrandchild relationships?
	2.	If sticking with the original concept of making the Prefixes
a simple property of type Collection inside the BMC object, how can I use
the Buffer object (or similar concept) to transfer the state of a BMC 
object
across process boundaries?
	3.	Does the LSet statement work when you have data in a UDT
that is not fixed in length (i.e. one of the properties is an object 
type)?
	4.	Do you have any other suggestions along the same lines?

Peter Conrey
Sr. Programmer/Analyst

  Return to Index