vField | (Variant) Column name of the table or its index (zero-based index).
If not set, then the method writes into the whole row of the table the variable of the Array type. If is -3 then sets the whole table row from Array of values. |
---|---|
vValue | (Variant) The new value to be written. |
var oDb = pMe.Pm("/Database0");
if (oDb.IsOpen())
{
// writing into the column named "column1" and the first row of the table
oDb.MoveFirst();
oDb.WriteFieldValue("column1", 100);
// writing into the 1st column and the 2nd row of the table
oDb.MoveNext();
oDb.WriteFieldValue(0, 100);
}
if (oDb.IsOpen())
{
oDb.MoveFirst();
oDb.Edit();
oDb.WriteFieldValue(0, 1);
oDb.WriteFieldValue(1, 12);
oDb.WriteFieldValue(2, "Text");
oDb.Update();
}
if (oDb.IsOpen())
{
var arr = Pm.CreatePmArray().Array1(1, 12, "Note");
oDb.MoveFirst();
oDb.WriteFieldValue(-3, arr);
}