Kbase P113404: Error (5890) when passing a Character Temp-table's field in the ADD method of the MS TreeView Active
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  01/09/2006 |
|
Status: Unverified
SYMPTOM(s):
Error (5890) when calling the ADD method of the MS TreeView ActiveX control
Error occurred while accessing component property/method: <property or method name>.
<COM message> Error code: <Program name> (5890)
Error occurred while accessing component property/method: Add.
Invalid key.
0x80020009 Error code: <Program name> (5890)
Passing the value of a Temp-Table's field in the third parameter of the ADD method
This field is a Character data type, but the value represents an integer
CAUSE:
This is expected behavior.
The Add method of the MS TreeView control does not accept numeric or a string that evaluates to a number (such as "123").
FIX:
Prefix the value of the Temp-Table's field with a character.
For example:
chCtrlFrame:TreeView:Nodes:Add(,,"K" + ttTest.f1 ,"Node1").