Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Number as Key to TreeView
Message
De
29/02/2000 09:29:08
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00338990
Message ID:
00339054
Vues:
18
>I have a treeview control that receives A-Z and 0-9 as a key. The help defines key as string (Optional. A unique string that can be used to retrieve the Node with the Item method.). When I pass a number (in quotes), it seems to think it is numeric and, even though it defines it as a string, throws an OLE Exception and crashes.
>Does anybody know how to force a number as a string to an external procedure?
>
>TIA,


Nigel,

Apparently the Treeview control looks at the first character on the left of the string you pass in, kind of like the ISDIGIT() function in VFP. I prepend a "T" (for Treeview *g*) and use the record's unique number, which in this particular case is a series of increasing numerals. Since I could care less what that Key value is as I use the Index of each node for Parent/Children management this works out well.

Best,

DD
Best,


DD

A man is no fool who gives up that which he cannot keep for that which he cannot lose.
Everything I don't understand must be easy!
The difficulty of any task is measured by the capacity of the agent performing the work.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform