PeterWallace
Programmer
I have a class Called Human
Consits of Firstname
Lastname
FullName
Title
Age
TypeofHuman
A Human could be a Landlord , A Tenant , A Creditor etc
I have MainForm where data is Entered depending on the Type
This passes Data to another form ( FrmNames )
where The Human Data is Is Entered
This Passes it back to Main Form
FrmMAIN
dim Landlord as Human
Form_load
set Landlord = New Human
' loads form name to get data
FrmNAMES.HandTo Landlord
FrmNAMES.show vbmodal
'----------------------------------
FrmName is to Enter New Data Or Modify existing Names and
Hand them Back to FrmMAIN
Via
FrmMain.ReturnFromName ObjectHuman
My Problem is FrmNames
dim ObjectHuman as human
sub HandTo ( HandoverHuman as Human)
'If I
Set OblectHuman = New Human
'I then have copy HandoverHuman to ObjectHuman
ObjectHuman.Firstname = HandoverHuman.Firstname
...
ObjectHuman.Title = HandoverHuman.Title
AND SAME THING when I Pass Back to FrmMain
How Can I Pass The Class Data between the Forms WITHOUT having to Copy it Each Time ???
Thanks In Advance
Peter