Is there any way to include a DBF file in the project by code? When you add a free table in your project that file will be excluded by default so you must to include it explicitly if you want to use it within your EXE.
Here's an example of BUILD PROJECT command:
Now you may build your app:
If you use your "bar.dbf" you get a "File does not exists" message because bar.dbf was excluded implicitly when issue the BUILD PROJECT command.
Any idea how to achieve this?
regards!
A team is only pieces that you exchange until you finish the work, it is efficient, it works.
Here's an example of BUILD PROJECT command:
Code:
lcPJXFileName = "c:\path\to\my\project.pjx"
Text To lcBuildCommand Noshow TextMerge Pretext 7
[indent]Build Project <<lcPJXFileName>> From ;[/indent]
[indent]"foo.prg", ;[/indent]
[indent][b]"bar.dbf"[/b][/indent]
EndText
=ExecScript(lcBuildCommand)
Now you may build your app:
Code:
If File(lcPJXFileName)
[indent]lcAPPFileName = "c:\path\to\myApp.app"[/indent]
[indent]Build App (lcAPPFileName) From (lcPJXFileName)[/indent]
Endif
If you use your "bar.dbf" you get a "File does not exists" message because bar.dbf was excluded implicitly when issue the BUILD PROJECT command.
Any idea how to achieve this?
regards!
A team is only pieces that you exchange until you finish the work, it is efficient, it works.