Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Fox > dynamically cre...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 790 of 852
Post > Topic >>

dynamically creating pages and accesing them in VFP

by shah <shahjagat@[EMAIL PROTECTED] > Aug 2, 2007 at 05:00 PM

Hello,

How can I access pages created dynamically at run time and set their
properties ?

For e.g

I have this loop that creates the name variable that I want to use to
access the pages

For i =1 to 5
 lpageName="Page"+alltrim(str(i))
next

And when I try to set any propery as follows -

thisform.pageframe1.&lpagename.anyproperty - && it does not work.

For any property I want to access, I am doing the following

 For i =1 to 5
  lpage="Page"+alltrim(str(i))+".visible=.t."
 next

 And then

thisform.pageframe1.&lpage  && this works.

I am sure there is a more elegant way to do this....

Shah




 4 Posts in Topic:
dynamically creating pages and accesing them in VFP
shah <shahjagat@[EMAIL  2007-08-02 17:00:05 
Re: dynamically creating pages and accesing them in VFP
Gene Wirchenko <genew@  2007-08-02 17:58:20 
Re: dynamically creating pages and accesing them in VFP
shah <shahjagat@[EMAIL  2007-08-02 19:27:30 
Re: dynamically creating pages and accesing them in VFP
Gene Wirchenko <genew@  2007-08-02 19:55:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Fri Jul 4 14:30:40 CDT 2008.