Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
V6s5 - FOR EACH OBJECT infinite recursion for PageFrames
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
V6s5 - FOR EACH OBJECT infinite recursion for PageFrames
Divers
Thread ID:
00870966
Message ID:
00870966
Vues:
46
Hi all

I am currently trying to adapt Locale.vcx by Greg. His original code (as will be found in the downloads section) does not work on pageframes (atleast for me <g>) so I added a similar code in the FOR EACH loop, on doing so the recorsion goes into infinite loop. What have I done wrong, please advise.


method setlocale()
FOR EACH oObj IN tcObj.OBJECTS
...
...

*** this is original Greg's code
	IF PEMSTATUS(oObj,"Objects",5)
		IF oObj.OBJECTS.COUNT>0
			this.setLocale( oObj )
		ENDIF
	ENDIF
	
*** this is my copy of the original
	IF PEMSTATUS(oObj,"Pages",5)
		IF oObj.Pages.COUNT>0
			this.setLocale( oObj )
		ENDIF
	ENDIF
NEXT
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform