Consultor Eletrônico



Kbase P138189: Errors 196 and 12927 occur when attempting to reference an UltraToolbar
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   04/12/2008
Status: Unverified

SYMPTOM(s):

Errors 196 and 12927 occur when attempting to reference an UltraToolbar

Example:

DEFINE VARIABLE myMenuBar AS Infragistics.Win.UltraWinToolbars.UltraToolbar NO-UNDO.
myMenuBar = THIS-OBJECT:ultraToolbarsManager1:ToolBars("mainMenuBar").

** <program> Could not understand line <number>. (196)

Could not locate element '' in class ''. (12927)

Could not locate element 'ToolBars' in class 'Infragistics.Win.UltraWinToolbars.UltraToolbarsManager'. (12927)

From Architect Class Browser

PUBLIC PROPERTY Toolbars AS Infragistics.Win.UltraWinToolbars.ToolbarsCollection
GET

Member of Infragistics.Win.UltraWinToolbars.UltraToolbarsManager

Summary:
Returns a Infragistics.Win.UltraWinToolbars.ToolbarsCollection of Infragistics.Win.UltraWinToolbars.UltraToolbar objects.

FACT(s) (Environment):

OpenEdge Architect Category: Visual Designer
OpenEdge 10.2A
Windows

CAUSE:

Toolbars is a collection which therefore requires slightly different syntax. In this case, the standard brackets must be replaced by square brackets in order for the assignment to succeed.

FIX:

Replace the standard brackets with square brackets when assigning an object in a collection. For example:

DEFINE VARIABLE myMenuBar AS Infragistics.Win.UltraWinToolbars.UltraToolbar NO-UNDO.
myMenuBar = THIS-OBJECT:ultraToolbarsManager1:ToolBars["mainMenuBar"].