What different does a compiled binaries(EXE) from a project which include a
database in the project (Data Page) ?

Re: DBC in Project by Man-wai

Man-wai
Tue Jul 03 08:09:33 CDT 2007

Den wrote:
> What different does a compiled binaries(EXE) from a project which include a
> database in the project (Data Page) ?

Anything included in the project would become read-only.

--
@~@ Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.04) Linux 2.6.21.5
^ ^ 21:09:01 up 15 days 10:41 0 users load average: 0.24 0.07 0.01
news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk

Re: DBC in Project by Den

Den
Wed Jul 04 01:05:14 CDT 2007

do you mean that if i include database in the project, all my programs after
compile
which perform update to database would not work ?
(since u mention the database would become read only)




"Man-wai Chang" <toylet.toylet@gmail.com> wrote in message
news:O2AdjNXvHHA.4796@TK2MSFTNGP04.phx.gbl...
> Den wrote:
>> What different does a compiled binaries(EXE) from a project which include
>> a database in the project (Data Page) ?
>
> Anything included in the project would become read-only.
>
> --
> @~@ Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
> / v \ Simplicity is Beauty! May the Force and Farce be with you!
> /( _ )\ (Xubuntu 7.04) Linux 2.6.21.5
> ^ ^ 21:09:01 up 15 days 10:41 0 users load average: 0.24 0.07 0.01
> news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk



Re: DBC in Project by Dan

Dan
Wed Jul 04 01:44:54 CDT 2007

If your database is "included" in the project, it will be copied into any
EXE built from the project. Since it's inside the EXE it will be read-only.

**BUT** please note that the word "included" has a very special meaning
inside the project manager. A DBC (or any file) can be listed in the PM, but
can be "excluded" from the project (it will have a icon with a circle and
slash thru it). Excluded files will not be burned into an EXE.

Listed in the project, but EXCLUDED, is the default for DBC files.
(right-click in the PM to toggle this setting.)

The big thing you may bump into with a DBC listed in a project is that if
you expand the DBC in the PM, showing the list of tables, VFP will open the
DBC (how else will it know what's in there?) in a datasession you can't
access. You won't be able to USE any tables EXCLUSIVE because another user
(you!) already has the DBC open.

Dan



Den wrote:
> do you mean that if i include database in the project, all my
> programs after compile
> which perform update to database would not work ?
> (since u mention the database would become read only)
>
>
>
>
> "Man-wai Chang" <toylet.toylet@gmail.com> wrote in message
> news:O2AdjNXvHHA.4796@TK2MSFTNGP04.phx.gbl...
>> Den wrote:
>>> What different does a compiled binaries(EXE) from a project which
>>> include a database in the project (Data Page) ?
>>
>> Anything included in the project would become read-only.
>>
>> --
>> @~@ Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
>> / v \ Simplicity is Beauty! May the Force and Farce be with you!
>> /( _ )\ (Xubuntu 7.04) Linux 2.6.21.5
>> ^ ^ 21:09:01 up 15 days 10:41 0 users load average: 0.24 0.07
>> 0.01 news://news.3home.net news://news.hkpcug.org
>> news://news.newsgroup.com.hk



Re: DBC in Project by Stefan

Stefan
Wed Jul 04 02:05:59 CDT 2007


"Den" <test@gromro.com> schrieb im Newsbeitrag
news:e8wuqFgvHHA.3588@TK2MSFTNGP06.phx.gbl...
> do you mean that if i include database in the project, all my programs
> after compile
> which perform update to database would not work ?
> (since u mention the database would become read only)

No, only the database *container would become read-only
(*.DBC etc.), as opposed to the table files (*.DBF etc.),
when you change the DBC's default status being "excluded".

For example, it can make sense to include a (second, separate)
DBC, containing only View definitions.
But usually the PM's default setting for DBCs works just fine -
do you have a particular concept why you want to include it?


hth
-Stefan



--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------



Re: DBC in Project by Den

Den
Wed Jul 04 20:10:27 CDT 2007


Thanks for all the comments..
what i needed to know is whats the use for "Adding" database in a project
manager.
since a project manager without adding any database in database work just
fine.

I'm not refering to "include" or "exclude" option after "adding" database in
project manager.
sorry for not asking more specific question.




"Stefan Wuebbe" <stefan.wuebbe@gmx.de> wrote in message
news:u%23dokogvHHA.1168@TK2MSFTNGP02.phx.gbl...
>
> "Den" <test@gromro.com> schrieb im Newsbeitrag
> news:e8wuqFgvHHA.3588@TK2MSFTNGP06.phx.gbl...
>> do you mean that if i include database in the project, all my programs
>> after compile
>> which perform update to database would not work ?
>> (since u mention the database would become read only)
>
> No, only the database *container would become read-only
> (*.DBC etc.), as opposed to the table files (*.DBF etc.),
> when you change the DBC's default status being "excluded".
>
> For example, it can make sense to include a (second, separate)
> DBC, containing only View definitions.
> But usually the PM's default setting for DBCs works just fine -
> do you have a particular concept why you want to include it?
>
>
> hth
> -Stefan
>
>
>
> --
> |\_/| ------ ProLib - programmers liberty -----------------
> (.. ) Our MVPs and MCPs make the Fox run....
> - / See us at www.prolib.de or www.AFPages.de
> -----------------------------------------------------------
>



Re: DBC in Project by Stefan

Stefan
Thu Jul 05 03:12:56 CDT 2007


"Den" <test@gromro.com> schrieb im Newsbeitrag
news:%233SAsFqvHHA.3524@TK2MSFTNGP06.phx.gbl...
>
> Thanks for all the comments..
> what i needed to know is whats the use for "Adding" database in a project
> manager.
> since a project manager without adding any database in database work just
> fine.

Right, technically all "included files marked as excluded" are optional,
the project manager itself does not need them for the Build process.

IMO it still can be useful to have them there, for example when you want
to use the Code References tool or do things like "Validate Database
Recover" automatically or create a documentation/backup on your
dbc(s) via gendbc.PRG right before the Build, or something like that.
Personally, I never found a good reason to remove a DBC from the
PM if I remember correctly.


hth
-Stefan



--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------



Re: DBC in Project by Dan

Dan
Thu Jul 05 10:57:33 CDT 2007

The primary benefit to having a dbc (and therefore all included dbfs) listed
(but excluded) in the PM is drag/drop to the form & class designers. But you
can also drag/drop from a form's dataenvironment.

Dan

Den wrote:
> Thanks for all the comments..
> what i needed to know is whats the use for "Adding" database in a
> project manager.
> since a project manager without adding any database in database work
> just fine.
>
> I'm not refering to "include" or "exclude" option after "adding"
> database in project manager.
> sorry for not asking more specific question.
>
>
>
>
> "Stefan Wuebbe" <stefan.wuebbe@gmx.de> wrote in message
> news:u%23dokogvHHA.1168@TK2MSFTNGP02.phx.gbl...
>>
>> "Den" <test@gromro.com> schrieb im Newsbeitrag
>> news:e8wuqFgvHHA.3588@TK2MSFTNGP06.phx.gbl...
>>> do you mean that if i include database in the project, all my
>>> programs after compile
>>> which perform update to database would not work ?
>>> (since u mention the database would become read only)
>>
>> No, only the database *container would become read-only
>> (*.DBC etc.), as opposed to the table files (*.DBF etc.),
>> when you change the DBC's default status being "excluded".
>>
>> For example, it can make sense to include a (second, separate)
>> DBC, containing only View definitions.
>> But usually the PM's default setting for DBCs works just fine -
>> do you have a particular concept why you want to include it?
>>
>>
>> hth
>> -Stefan
>>
>>
>>
>> --
>>> \_/| ------ ProLib - programmers liberty -----------------
>> (.. ) Our MVPs and MCPs make the Fox run....
>> - / See us at www.prolib.de or www.AFPages.de
>> -----------------------------------------------------------