CONFIG.FPW 
Author Message
 CONFIG.FPW

CONFIG.FPW

Hi everybody,

I have some questions about using the file CONFIG.FPW (that i can't find in
the manual) used to define all the settings.

1 - Does i have to install a "config.fpw" in each computer that uses my
application?
2 - How do i reference my program to call the "fpw" file, when i'm starting
the application?
3 - Using the "fpw" allows to appear the name of my application in the
SCREEN.CAPTION, when the application starts to run; instead of appearing
"Microsoft Visual Fox Pro", wait 2 or 3 seconds (loading) and then execute
the first line of my MAIN program:

screen.caption = "myapplname"

TIA

Ricardo Almeida



Mon, 12 Mar 2001 03:00:00 GMT
 CONFIG.FPW

Ricardo,
In the FPW or FPD help look for "Configuring FoxPro" - "Startup Files" and
"Special CONFIG.FPW Settings" for information on the CONFIG file.
1) The answer depends on whether the default values are "good enough". I
almost always install a CONFIG.FPW file on each system - especially if it's
a multi-user network based application. To expand on this, if the
application uses the resource file, I point at a local copy, since it can't
be shared on the network. I also include the temporary file information that
points to a local drive to speed up processing. I also use it to change the
caption and set the screen off so my 'splash' screen appears first (at least
in VFP 5.0 apps).
2) In the runtime environment the CONFIG file is only used at startup, so
your program doesn't explicitly need to reference it. Although, I always
have a screen, that among other things, displays the location of the CONFIG
file it used (to make sure it's using the one I think it supposed to be
<g>).
3) You can use the TITLE option to change the caption.

To summarize, the following is a typical CONFIG.FPW for one of my setups:
SCREEN=OFF
TITLE=Rick's Application
resource=C:\MyApp\FOXUSER.DBF
resource=ON
help=OFF
tmpfiles=C:\foxtemp
sortwork=C:\foxtemp
editwork=C:\foxtemp
progwork=C:\foxtemp

Note: To put make sure this CONFIG file is used, the shortcut would then be:
C:\MyApp\MyApp.EXE -cC:\MyApp\CONFIG.FPW

Rick

Quote:

>CONFIG.FPW

>Hi everybody,

>I have some questions about using the file CONFIG.FPW (that i can't find in
>the manual) used to define all the settings.

>1 - Does i have to install a "config.fpw" in each computer that uses my
>application?
>2 - How do i reference my program to call the "fpw" file, when i'm starting
>the application?
>3 - Using the "fpw" allows to appear the name of my application in the
>SCREEN.CAPTION, when the application starts to run; instead of appearing
>"Microsoft Visual Fox Pro", wait 2 or 3 seconds (loading) and then execute
>the first line of my MAIN program:

>screen.caption = "myapplname"

>TIA

>Ricardo Almeida



Mon, 12 Mar 2001 03:00:00 GMT
 CONFIG.FPW
Rick:

Any reason not to include CONFIG.FPW in the EXE?

Michael

Quote:

>Ricardo,
>In the FPW or FPD help look for "Configuring FoxPro" - "Startup Files" and
>"Special CONFIG.FPW Settings" for information on the CONFIG file.
>1) The answer depends on whether the default values are "good enough". I
>almost always install a CONFIG.FPW file on each system - especially if it's
>a multi-user network based application. To expand on this, if the
>application uses the resource file, I point at a local copy, since it can't
>be shared on the network. I also include the temporary file information
that
>points to a local drive to speed up processing. I also use it to change the
>caption and set the screen off so my 'splash' screen appears first (at
least
>in VFP 5.0 apps).
>2) In the runtime environment the CONFIG file is only used at startup, so
>your program doesn't explicitly need to reference it. Although, I always
>have a screen, that among other things, displays the location of the CONFIG
>file it used (to make sure it's using the one I think it supposed to be
><g>).
>3) You can use the TITLE option to change the caption.

>To summarize, the following is a typical CONFIG.FPW for one of my setups:
>SCREEN=OFF
>TITLE=Rick's Application
>resource=C:\MyApp\FOXUSER.DBF
>resource=ON
>help=OFF
>tmpfiles=C:\foxtemp
>sortwork=C:\foxtemp
>editwork=C:\foxtemp
>progwork=C:\foxtemp

>Note: To put make sure this CONFIG file is used, the shortcut would then
be:
>C:\MyApp\MyApp.EXE -cC:\MyApp\CONFIG.FPW

>Rick


>>CONFIG.FPW

>>Hi everybody,

>>I have some questions about using the file CONFIG.FPW (that i can't find
in
>>the manual) used to define all the settings.

>>1 - Does i have to install a "config.fpw" in each computer that uses my
>>application?
>>2 - How do i reference my program to call the "fpw" file, when i'm
starting
>>the application?
>>3 - Using the "fpw" allows to appear the name of my application in the
>>SCREEN.CAPTION, when the application starts to run; instead of appearing
>>"Microsoft Visual Fox Pro", wait 2 or 3 seconds (loading) and then execute
>>the first line of my MAIN program:

>>screen.caption = "myapplname"

>>TIA

>>Ricardo Almeida



Mon, 12 Mar 2001 03:00:00 GMT
 CONFIG.FPW
Michael,
Sure, users that don't like to (or can't) do things uniformly. If someone
doesn't want to create a \foxtemp directory on C: (from my sample) or only
has enough room on their D: drive to handle the large temporary files
because of large queries, if it's compiled in then they can't overide it.
Also if they run the application code on a network drive, each user may not
"map" it to the same drive letter (or some may not use drive letters on the
network at all <s>). I do compile in the CONFIG file if I know that the app
will run in a "uniform" environment, and some customers even require it. But
for general situations, telling the user where the code, resource file
and/or the temp files MUST go, is just as disturbing as those apps that
decide to totally ignore your personal Window's color scheme <g>.

Rick


Quote:
>Rick:

>Any reason not to include CONFIG.FPW in the EXE?

>Michael


>>Ricardo,
>>In the FPW or FPD help look for "Configuring FoxPro" - "Startup Files" and
>>"Special CONFIG.FPW Settings" for information on the CONFIG file.
>>1) The answer depends on whether the default values are "good enough". I
>>almost always install a CONFIG.FPW file on each system - especially if
it's
>>a multi-user network based application. To expand on this, if the
>>application uses the resource file, I point at a local copy, since it
can't
>>be shared on the network. I also include the temporary file information
>that
>>points to a local drive to speed up processing. I also use it to change
the
>>caption and set the screen off so my 'splash' screen appears first (at
>least
>>in VFP 5.0 apps).
>>2) In the runtime environment the CONFIG file is only used at startup, so
>>your program doesn't explicitly need to reference it. Although, I always
>>have a screen, that among other things, displays the location of the
CONFIG
>>file it used (to make sure it's using the one I think it supposed to be
>><g>).
>>3) You can use the TITLE option to change the caption.

>>To summarize, the following is a typical CONFIG.FPW for one of my setups:
>>SCREEN=OFF
>>TITLE=Rick's Application
>>resource=C:\MyApp\FOXUSER.DBF
>>resource=ON
>>help=OFF
>>tmpfiles=C:\foxtemp
>>sortwork=C:\foxtemp
>>editwork=C:\foxtemp
>>progwork=C:\foxtemp

>>Note: To put make sure this CONFIG file is used, the shortcut would then
>be:
>>C:\MyApp\MyApp.EXE -cC:\MyApp\CONFIG.FPW

>>Rick


>>>CONFIG.FPW

>>>Hi everybody,

>>>I have some questions about using the file CONFIG.FPW (that i can't find
>in
>>>the manual) used to define all the settings.

>>>1 - Does i have to install a "config.fpw" in each computer that uses my
>>>application?
>>>2 - How do i reference my program to call the "fpw" file, when i'm
>starting
>>>the application?
>>>3 - Using the "fpw" allows to appear the name of my application in the
>>>SCREEN.CAPTION, when the application starts to run; instead of appearing
>>>"Microsoft Visual Fox Pro", wait 2 or 3 seconds (loading) and then
execute
>>>the first line of my MAIN program:

>>>screen.caption = "myapplname"

>>>TIA

>>>Ricardo Almeida



Mon, 12 Mar 2001 03:00:00 GMT
 CONFIG.FPW

Quote:

> CONFIG.FPW

> Hi everybody,

> I have some questions about using the file CONFIG.FPW (that i can't find in
> the manual) used to define all the settings.

> 1 - Does i have to install a "config.fpw" in each computer that uses my
> application?

No, just include it into your Project Manager...

Quote:
> 2 - How do i reference my program to call the "fpw" file, when i'm starting
> the application?

You don't need to. It's already referenced by the Project...

Quote:
> 3 - Using the "fpw" allows to appear the name of my application in the
> SCREEN.CAPTION, when the application starts to run; instead of appearing
> "Microsoft Visual Fox Pro", wait 2 or 3 seconds (loading) and then execute
> the first line of my MAIN program:

> screen.caption = "myapplname"

Include the following line to your FPW

TITLE = MyApplication (without quotes, if I remember well)

Quote:
> TIA

> Ricardo Almeida

This is as far as I remember. I haven't tested it recently. So just try
if it works...

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Loris Antonangeli, University of Oulu (Finland)
phone: +358-8-5565456, +358-40-5015645

http://cc.oulu.fi/~loris/loris.htm

Messages FOR FREE straight to my GSM-phone - follow instructions:
1) Go to http://www.mtn.co.za/sms/secure/text.html
2) Choose Network "Finland Telecom Finland 35840"
3) Enter my gsm-phone number +358405015645
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Ennen olin ep?varma - nyt en oikein tied?...



Fri, 16 Mar 2001 03:00:00 GMT
 
 [ 5 post ] 

 Relevant Pages 

1. Help with config.fx, config.fp, config.fpw files

2. SET CENTURY ROLLOVER in CONFIG.FPW

3. Can't read config.fpw

4. TIME parameter in CONFIG.FPW???

5. config.fpw commands

6. CONFIG.FPW re VFP 5.0

7. CONFIG.FPW re VFP 5.0

8. VFP title without config.fpw

9. CONFIG.FPW and Win NT v3.5

10. Using the config.fpw for FPW26

11. Assigning Function Keys in CONFIG.FPW FPW2.6

12. SET DEFAULT TO path - N.G. in CONFIG.FPW


 
Powered by phpBB® Forum Software