PalGetItemNameX

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.

SalString PalGetItemNameX( SalWindowHandle hWnd )

The PalGetItemNameX does the same thing as SalGetItemName, with the difference that it item names is passed back as the return value rather than in a receive parameter.

Parameters

Name Description
SalWindowHandle hWnd The handle (or name) of the Foundation1 window object

Returns

The return value is the name of the object/item.

Comments

This method can be useful to avoid hard-coding window/object names in Sql-statements.

Example

Set lsStmt = 'select count(*) into :i_hWndFrame.' 
        || PalGetItemNameX( i_hWndFrame ) 
        || '.nRecords from VIEW'
Call DbPrepareAndExecute( c_hSql, lsStmt )
C# code
sMDISection = Int.PalGetItemNameX(Sys.hWndMDI);