Code translation question

felicia

New Member
Can someone please help translate this line of code into business rule for me.


if vCatNo ne ? AND vTempItemNo NE ? THEN do:
find bProdItem where
bProdItem.CatNo = vCatNo and
bProdItem.ItemNo = vTempItemNo no-lock.

run UnderScoreFind(vCatNo, bProdItem.GroupNo,
tOrdLines.FullProdCode,
tOrdLines.UnderScoreOptionList,
vTempItemNo, vItemCode,
output vFound,
output tOrdLines.UnderScoreOptionList).

end.
else
tOrdLines.UnderScoreOptionList = "".

end.
else
tOrdLines.UnderScoreOptionList = "".
 
I guess my guess would be as good as yours ;-)

This is just some code. What business rules do you expect?

It says something like:
If some variables have a value then find some table and run some procedure which strange enough has tOrdLines.UnderScoreOptionList both as input and output parameter.
Otherwise set previuos value of tOrdLines to empty.

Hard to find any business rule here. But maybe we have a different understanding of the word business rule.

Casper.
 
The business rule is likely to be in the procedure being run, which you don't list.

And, yes, having an parameter declared as input-output is much more appropriate than having the same parameter listed twice.
 
Back
Top