DataItemBindScopeAdd

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 DataItemBindScopeAdd(SalString sItem)

The DataItemBindScopeAdd adds the bind scope to a variable name, forming a fully qualified bind variable.

Parameters

Name Description
SalString sItem The item for which to return the fully qualified bind name.

Returns

The return value is the fully qualified name of sItem.

Comments

Applications can use the DataItemBindScopeAdd method to avoid hard-coding window names etc in sql statements.

Example

Set lsStmt = 'select name from ' || c_sDbPrefix 
   || 'employees into ' || DataItemBindScopeAdd( 'sEmployee' )

! lsStmt is now "select name from appowner.employees 
   into :i_hWndFrame.frmEmployeeData.sEmployee"
C# code
lsStmt = "select " + i_sObjid + ", " + p_sSqlColumn + " into :" 
+ _BindVariableScopeSet(DataItemBindScopeAdd("__sRecordObjidTmp"));