Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add/remove files to project programmatically
Message
 
To
08/05/2013 11:12:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01573026
Message ID:
01573041
Views:
58
>Is there a similar usage to determine whether a file is in a project? (I can use Try/Catch, of course, but am wondering if that is even necessary)
>
>>You can add/remove from the active project using the following:
>>
>>_VFP.ActiveProject.Files.Add('Main.prg')
>>_VFP.ActiveProject.Files('Main.prg').Remove( )
>>
>>-Dan
>>
>>>Is there a native FoxPro function or method to add files to (or remove files from) a project?
>>>
>>>Thanks in advance.

?TYPE([_VFP.ActiveProject.Files.Item("main.prg")])="O"
Previous
Reply
Map
View

Click here to load this message in the networking platform