Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview - Invalid Key
Message
 
À
07/10/2004 15:47:18
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00949695
Message ID:
00949707
Vues:
126
This message has been marked as the solution to the initial question of the thread.
Hi Jay,

Key ID is same as object name - same rules
First letter must be alfa or _.

You can use "X"+LTRIM(STR(n,11)) OR "X"+STRTRAN(STR(n,11)," ","0")

MartinJ

>I'm getting an error when adding a node on a treeview that states, "OLE IDispatch exception code 0 from Nodes: Invalid key.." Below is the line of code it fails on. It looks ok to me, but obviously it's not.
>
>
>m.NewNode = THIS.treeview.nodes.ADD(m.ParentNode, 4, STR(TreeCursor.UniqueID), Paths[i])
>
>
>
>UPDATE: The value of STR(TreeCursor.UniqueID) is "    1"
>
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform