Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView key
Message
De
18/01/2000 15:33:40
 
 
À
18/01/2000 15:25:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00319557
Message ID:
00319607
Vues:
10
Robert,

Thanks for the great info. That hit the nail on the head < VBG >.
You got me going on this one Thanks


>John, the first character of the key value in the tree view must be a character value. If the first number is numeric, the activeX control evaluates the value as numeric and throws an error.
>
>What I do is prefix my key values with a '_' (underscore), which is ok with the tree view control as a character value. Then in the nodeclick method, I just strip off the underscore character and process the rest of the key as the value I am looking for.
>
>Hope that helps.
>
>P.S. when I get more detailed, I prefix the headers (the higher nodes) with '_z_' + value, and the child nodes (the actuall value the user is looking for) with '_x_'. Then in my nodeclick method, I do a;
>
>IF (LEFT(node.key), 3) = "_x_"
>* must be a record.
>... search for record, enable buttons, or whatever.
>ELSE
>* must be a header.
>... disable buttons.
>
>END
>
>
>Rob.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform