In the real code there are more conditions that decude the EDT D value.
Method A calls Method B the number of records imported by the user.
private void MethodA()
{
TmpTableA.linkPhysicalTableInstance(TmpTableB);
Field1,
Field2,
from
TmpTableA
order by
TableA.Field3,
outer join
Field3
from
View
where
View.Field1 == TmpTableA.Field1
{
str field2_val = TmpTableA.Field2;
str field3_val = View.Field3;
if(condition)
{
number = X;
}
{
number = Y;
}
field1_val,
number);
}
private void MethodB(EDTString C,
EDTString D)
{
while select forupdate TmpTableB
where TmpTableB.Field1 == C
{
TmpTableB.Number = D;
TmpTableB.Type = Update;
TmpTableB.update();
}