Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto Add files
Message
 
 
To
30/04/2006 18:21:10
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Project manager
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01117929
Message ID:
01117934
Views:
14
James,

The QueryAddFile is an event that occurs right before a file is added to a project. To add file use Add() method of project's Files colection.
toProject.Files.Add(lcFile)
>
>I am trying to automaticly add prg files to my project before I build it. I have the following code that I call from the BeforeBuild event. The code runs fine and queryaddfile returns .t. but the files are not added.
>
>Thanks.
>
>
>DO addwebfiles WITH this
>
>
>Here is the code for addwebfiles.prg
>
>
>LPARAMETERS toProject
>LOCAL lnx,laFiles[1]
>
>lnLines = ADIR(laFiles,"source\wwClass\*.prg")
>FOR lnx = 1 TO ALEN(laFiles,1)
>	*// lcFile = STRTRAN(FULLPATH(laFiles[lnx,1]),"d:\projects\realweb\","",1,1,1)
>	lcFile = FULLPATH(laFiles[lnx,1])
>?	toProject.queryaddfile(lcFile)
>NEXT
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform