Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine data type
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00482033
Message ID:
00482468
Vues:
13
>I use this guy to determine if a parent node has a child node.
>
>if !vartype(oForm.oMyTreeView.nodes(lcMyKey).child)==[O]
>
>But the procedure crashes inside VARTYPE, before the evaluation. Is there a method to help me make sense of this?
>Thanks
>Terry

The node objects in the treeview object have a property called children which is a count of the number of children for the node.

If your checking for children then try :
IF oForm.oMyTreeView.nodes(lcMyKey).children > 0
   * Insert code here
ENDIF
Jake
Wine is sunlight, held together by water - Galileo Galilei
Un jour sans vin est comme un jour sans soleil - Louis Pasteur
Water separates the people of the world; wine unites them - anonymous
Wine is the most civilized thing in the world - Ernest Hemingway
Wine makes daily living easier, less hurried, with fewer tensions and more tolerance - Benjamin Franklin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform