Records

crazymarvin

Member
Joined
Nov 22, 2006
Messages
18
Location
Belfast, UK
Programming Experience
Beginner
I have 3 strings, and 2 integers and 1 boolean value from a form which i need to be copyed to another form. They dont need to permantly saved. How would i copy these values from one form to another?

Thanks, Martyn
 
I would create 3 string properties, 2 integer properties and a boolean property in my target form class and set them from the source form.
 
If this is a one-pass, ie all info is passes at once, or even else related data like a 'record', I would create a class or structure containing the needed properties, populate info and send it to the method/property of the other form.
 
Back
Top