How to set null value in reference control on a Form

Below are the ways to blank or clear the reference control. This is kind of tricky, it is not as simple as other controls. Remember I did mention reference control in one of my previous post with name “How to add lookups”
ABCTable _ds.object(fieldNum(ABCTable, Field1)).setValue(0);
ABC_ds.rereadReferenceDataSources();
Or
ABCTable _ds.object.Field1 = 0;
ABC_ds.rereadReferenceDataSources();

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.