Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recursive method
Message
 
 
To
09/10/2001 16:41:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00566186
Message ID:
00566199
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform