Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activeproject.files.count unknown
Message
From
27/01/2017 09:40:45
 
 
To
27/01/2017 09:39:07
General information
Forum:
Visual FoxPro
Category:
Project manager
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01647066
Message ID:
01647068
Views:
42
If is active, of course. :)

>*the project must be opened and active:
>
>MODIFY PROJECT ? NOSHOW NOWAIT 
>m.x=0
>FOR EACH oFile IN _VFP.ACTIVEPROJECT.FILES
>   IF INLIST(oFile.Type, "P", "K")  && prg & forms
>      m.x=m.x+1
>   ENDIF
>ENDFOR
>messagebox("prgs+ forms count="+trans(m.x))
>_VFP.ActiveProject.Files(1).Modify( )   &&modify the first file in collection
>
>this works on my vfp9SP2 [Visual FoxPro 09.00.0000.7423 pour Windows]
>
>for more on this subject you can read in my blog:
>http://yousfi.over-blog.com/2015/12/working-with-vfp-project-as-object.html
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform