Information générale
Catégorie:
Contrôles ActiveX en VFP
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement