Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recursive method
Message
 
 
À
09/10/2001 16:41:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00566186
Message ID:
00566199
Vues:
13
>Hi,
>
>Just wondering about something. I had a button on a form that called itself. (ie, thisform.button.click() would have the command thisform.button.click()) on it. It wasn't working proberly and I soon realized that it was only firing once. I then took out the code and put it in a custom method, thisform.recursivemthod(). And then on the command button I just had thisform.recursivmethod() and it worked properly. Why is that? you can't have a click() even call itself? I am using a older verion of fox pro, version 5, has this changed in 6 or 7?

I don't think it's a good idea to call click of the same button from its click . Your latest approach seems to be more adequate.
>
>Thanks,
>Chris
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform