jeudi 5 avril 2012

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();

Aucun commentaire:

Enregistrer un commentaire