Hoping someone can help me understand why the following code does not work as I expect.
When the line Table1.Field1 = Table1.Field1 gets executed, the Table1.Field1 Integer value gets set to 12, which corresponds to the initial value set up for this field in the database schema. However, what I was trying to do is explicitly state that Field1 value should remain unchanged.
==================
Find Table1 where recid(Table1) = inputRecID exclusive-lock no-error.
If available Table1 then
do:
assign Table1.Field1 = If inputField <> 0 then Table1.Field1 = inputField
else Table1.Field1 = Table1.Field1
...
end.
===================
Issue is that if
When the line Table1.Field1 = Table1.Field1 gets executed, the Table1.Field1 Integer value gets set to 12, which corresponds to the initial value set up for this field in the database schema. However, what I was trying to do is explicitly state that Field1 value should remain unchanged.
==================
Find Table1 where recid(Table1) = inputRecID exclusive-lock no-error.
If available Table1 then
do:
assign Table1.Field1 = If inputField <> 0 then Table1.Field1 = inputField
else Table1.Field1 = Table1.Field1
...
end.
===================
Issue is that if