Hi,
I have a table EmpTable like so:

If I want to update the salary of John I can do it like so:
static void UpdateSal(Args _args)
{
EmpTable EmpTable;
real sal=110000;
int RowId = 1;
ttsBegin;
select forUpdate EmpTable where EmpTable.Id==RowId;
EmpTable.Salary=sal;
EmpTable.update();
ttsCommit;
}
I want help in implementing the above code with using only variables:
static void UpdateSal_WithStrValues(Args _args)
{
str table = 'EmpTable'
str field = 'Salary'
int RowId = 1;
real sal=110000;
.....??
.....??
}
*This post is locked for comments
I have the same question (0)