PM_DataItemValueGet

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_DataItemValueGet

An application or the framework sends the Const.PM_DataItemValueGet to a data item to retrieve its value.

Parameters

Name Description
wParam Unused
lParam Unused

Returns

The return value is a handle to a string containing the data items value.

Comments

If an application is processing this message and wish to return a date or number value, those values must first be converted to a string using IFS Client Developers standard string formats for dates and numbers respectively. Applications can use function SalFmtFieldToStr for this purpose.

Example

This example sends Const.PM_DataItemValueGet to retrieve the value of the dfName field.

Set sName = SalNumberToHString( SalSendMsg( dfName,
                              PM_DataItemValueGet, 0, 0 ) )
SalString value = SalString.FromHandle(Sal.SendMsg( dfName,
Const.PM_DataItemValueGet, Sys.NUMBER_Null, Sys.NUMBER_Null));