<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Sorry, a couple of typos in my previous example:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif">
update_table(Table, <div class="gmail_default" style="display:inline"></div>Key, <div class="gmail_default" style="display:inline"></div>FieldName, <div class="gmail_default" style="display:inline"></div>Value) -><br>
</div><div style="font-family:arial,helvetica,sans-serif">
Attrs = mnesia:table_info(Table, attributes),</div><div style="font-family:arial,helvetica,sans-serif"> {ok, Pos} = index_of(FieldName, Attrs),</div><div style="font-family:arial,helvetica,sans-serif">
R = mnesia:dirty_read(Table, Key),</div><div style="font-family:arial,helvetica,sans-serif"> R1 = setelement(Pos, R, Value),</div><div style="font-family:arial,helvetica,sans-serif">
ok = mnesia:dirty_write(Table, R1).</div></div></blockquote></div></div></div>