Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: NAEEM UDDIN
  Where is NAEEM UDDIN?
 SARGODHA
 Pakistan
 NAEEM UDDIN
 Tags
Subject: RE: How to Get list of Forms in MyExe File?
Thread ID: 248956 Message ID: 248972 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Projects and Design
Date: Saturday, December 26, 2009 8:05:54 AM         
   


> Hello Experts!
> Kindly help me!
> Is there any way to get a list of compiled Forms in MyExe.Exe file,programmatically?
> I want to make a list of forms in MyExe file at RunTime by clicking a button in MyExe.Exe file.
>
> Thank you v much in advance.
> Naeem ud Din
>

Hi Naeem,

There is nothing built in, but you can create your own functionality as Yuri suggested:
Either create a form list manually or programmatically, e.g. by scanning the _vfp.ActiveProject.Files collection:
LOCAL loFile
FOR EACH loFile IN _vfp.ActiveProject.Files
	IF m.loFile.Type == 'K'
		? m.loFile.Name && Insert Into yourList
	ENDIF
NEXT

You can do so automatically right before each Build by binding a custom ProjectHook class and using its BeforeBuild() event.

Or, at runtime, use the sophisticated way as recently described by Leonid Lepin: Foxite -> Home -> "Search" for "heap walk leonid"


hth
-Stefan

ENTIRE THREAD

How to Get list of Forms in MyExe File? Posted by NAEEM UDDIN @ 12/25/2009 8:50:32 PM
RE: How to Get list of Forms in MyExe File? Posted by Yuri Rubinov @ 12/25/2009 10:32:24 PM
RE: How to Get list of Forms in MyExe File? Posted by Stefan Wuebbe @ 12/26/2009 8:05:54 AM