Hello everyone,
Is this correct ?
pRow.set_Value(pRow.Fields.FindField("DATECREATED"), Today) pRow.Store()
I do something like this
'Populate the stats table <SPAN class="keyword token">with</SPAN> the iteration<SPAN class="punctuation token">.</SPAN> Dim row As IRow <SPAN class="operator token">=</SPAN> tTable<SPAN class="punctuation token">.</SPAN>CreateRow Dim fields As IFields <SPAN class="operator token">=</SPAN> row<SPAN class="punctuation token">.</SPAN>Fields Dim fDate As Date <SPAN class="operator token">=</SPAN> fields<SPAN class="punctuation token">.</SPAN><SPAN class="token function">FindField</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"DateCreated"</SPAN><SPAN class="punctuation token">)</SPAN> row<SPAN class="punctuation token">.</SPAN><SPAN class="token function">Value</SPAN><SPAN class="punctuation token">(</SPAN>fDate<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">=</SPAN> Today row<SPAN class="punctuation token">.</SPAN><SPAN class="token function">Store</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Another method would be creating an Update SQL Query and executing that assuming that your data is in a real database and not a file geodatabase.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.