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.
Const.PM_DataItemFlagGet
An application sends the Const.PM_DataItemFlagGet to a data item to get its field flags.
Name | Description |
---|---|
wParam | Unused |
lParam | Unused |
The return value is the complete set of Const.FIELD_* flags.
Applications should use the Const.PM_DataItemFlagGet message to retrieve the complete set of field flags for the data item. To find out if specific flags are set, the Const.PM_DataItemFlagQuery message should be used.
This example retrieves the flags from a data item and tests of the item is any type of key (primary key or parent key).
Set nFlags = SalSendMsg( hWndItem, PM_DataItemFlagGet, 0, 0 ) Set bItemIsKey = nFlags & ( FIELD_Key | FIELD_ParentKey )
This example retrieves the flags from a data item and tests of the item is queryable
nFlags = Sal.SendMsg(cQueryInfo.__hWndQueryInvokerChild[i], Const.PM_DataItemFlagGet, 0, 0);
bItemIsKey = (bool)(nFlags & Const.FIELD_Query);