<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Perfect! Thanks Ken, much appreciated.<br>
<br>
Don<br>
<br>
<div class="moz-cite-prefix">On 05/15/2016 05:21 PM, Kenneth Lakin
wrote:<br>
</div>
<blockquote cite="mid:5738E85F.1090408@gmail.com" type="cite">
<pre wrap="">On 05/15/2016 10:52 AM, Donald Steven wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi everyone,
When I update the 'note' record below it updates correctly but the
value returned is only the sub-record 'pressure', not the whole 'note'
record. I'd be most grateful for the right syntax. Thanks.
</pre>
</blockquote>
<pre wrap="">
I think the syntax is:
setNpressure(N, Initial, Final, Offset, Scope) ->
N1 = N#note{p1 = #pressure{initial = Initial, final = Final, offset =
Offset, scope = Scope}}.
Otherwise, you're just returning the .p1 field.
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
<br>
</body>
</html>