AlexPonnath
asked on
Data Structures
How can i build a data structure which more reflects something like a one to many
kind of thing. Like i have a person who can have more then 1 address, how can i store
this in a structure ?
what if i now have a second address i like to add to the address Structure ?
kind of thing. Like i have a person who can have more then 1 address, how can i store
this in a structure ?
<!---- Create a Name structure --->
<cfset nameCLK=StructNew()>
<cfset nameCLK.first="Chris">
<cfset nameCLK.middle="Lloyd">
<cfset nameCLK.last="Gilson">
<!--- Create an address struct --->
<cfset addrCLK=StructNew()>
<cfset addrCLK.street="17 Gigantic Rd">
<cfset addrCLK.city="Watertown">
<cfset addrCLK.state="MA">
<cfset addrCLK.zip="02472">
<!---- Create a Person structure --->
<cfset personCLK=StructNew()>
<cfset personCLK.name=#nameCLK#>
<cfset personCLK.addr=#addrCLK#>
what if i now have a second address i like to add to the address Structure ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.