xInfo::activeXControls Method

Retrieves a list of the ActiveX controls that are in Microsoft Dynamics AX.

Syntax

client server public static container activeXControls()

Run On

ClientOrServer

Return Value

Type: container
A nested container that holds information about each of the ActiveX controls.

Remarks

The returned container contains four containers. The first inner container contains the names of all the controls. The second inner container contains the ID for each control, which is a GUID. The third inner container contains the security setting for each control. The fourth inner container contains a description of each control.

Examples

The following example prints a description of each of the ActiveX controls in Microsoft Dynamics AX.

static void activeXcontents(Args _args) 
{ 
    int       i; 
    str       strClsName, strTypeLibHelp, strClsId, strSafeForBits; 
    container c; 
    container clsName, clsId, safeForBits, typeLibHelp; 
 
    c = xinfo::activeXControls(); 
    clsName = conpeek(c, 1); 
    clsId = conpeek(c, 2); 
    safeForBits = conpeek(c, 3); 
    typeLibHelp = conpeek(c, 4); 
    for (i=1; i<conlen(clsName); i++) 
    { 
        strClsName = conpeek(clsName, i); 
        strClsId = conpeek(clsId, i); 
        strSafeForBits = conpeek(safeForBits, i); 
        strTypeLibHelp = conpeek(typeLibHelp, i); 
        print strClsName, " ", strClsId, " ", strSafeForBits, 
            " ", strTypeLibHelp; 
    } 
    pause; 
}

See Also

xInfo Class

xInfo::automationObjects Method