Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
V6s5 - FOR EACH OBJECT infinite recursion for PageFrames
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
V6s5 - FOR EACH OBJECT infinite recursion for PageFrames
Miscellaneous
Thread ID:
00870966
Message ID:
00870966
Views:
44
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
___________________________________________
Next
Reply
Map
View

Click here to load this message in the networking platform