Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.
SalBoolean EditDataItemFlagQuery( SalNumber nFlags )
The EditDataItemFlagQuery method tells if one or more data item field flags are set.
Name | Description |
---|---|
SalNumber nFlags | Flags to query. Specify any Const.FIELD_* constant. You can combine several flags with the OR (|) operator. |
The return value is true if all of the flags in nFlags are set, false otherwise.
Set bItemIsKey = dfsName.EditDataItemFlagQuery( FIELD_Key | FIELD_ParentKey ) Set bItemIsKey = dfsName.EditDataItemFlagQuery( FIELD_Key | FIELD_ParentKey )// If new (not duplicate) then show <value> in mandatory fields, null in others if ((!(Sys.lParam)) && this.EditDataItemFlagQuery(Const.FIELD_Required) && Int._DataSourceValueOnNew()) {
.............