[erlang-questions] help: fetching data from records at single instance

Christian S chsu79@REDACTED
Mon Nov 20 17:38:26 CET 2006


>             I have created the record with three fields.and i have update
> the data in all the three fields .now i need to fetch all the data from the
> fields
>            can i fetch this data from these  fields  at single instance i
> hav tried a lot but i could'nt do it
>           exmple:
> -record(person,{name,phone,address}).
>                         so from the above record i need to fetch the name ,
> phone and address at the single instance

#person{name=Name, phone=Phone, address=Address} = Record

Is that what you want? Let Name, Phone and Address be unbound variables.



More information about the erlang-questions mailing list