When the CurrFieldNo holds the field Number.
ex:
I have a field called /A/
one function called in onvalidate trigger
function contains this /if/ condition.
I inserted a record and tried to enter a value in the field /A/ (on business central), onvalidate trigger was triggered and successfully entered into if condition(got the CurrFieldNo).
I tried to insert the record from code(Visual studio), performed TableName.validate(/A/,5); but the condition got failed because the CurrFieldNo is getting 0.
Please explain when we will get the CurrFieldNo