|
Home > Archive > FoxPro Setup > September 2005 > config.fpw not working with vfp7 executable
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
config.fpw not working with vfp7 executable
|
|
| Don Castiglioni 2005-09-21, 1:26 pm |
| I created an application using vfp7 and I compiled as an executable. The
executable runs fine, but it does not seem to recognize the config.fpw I
created.
Here is my command line in my shortcut target:
P:\VF7\crim\hot7.exe - cp:\vf7\crim\dbf\hot
7\config.fpw
the start in: P:\VF7\crim
It seems to ignore the commands in my config.fpw, eg.
sortwork = c:\temp
editwork = c:\temp
progwork = c:\temp
SET SYSMENU to
_SCREEN.Caption = "hix"
I created this and run it on a windows 2000 machine. Am I doing something
wrong?
| |
| Fred Taylor 2005-09-22, 3:24 am |
| Yes, you are. CONFIG.FPW can set the sortwork etc, files as you've shown,
but you cant execute code like your SET SYSMENU and _screen.Caption lines.
You'll need to execute a .PRG that does those setteings using the COMMAND
setting in your .FPW. Be aware that I don't think you can use the COMMAND
in an .EXE.
See the help for "COMMAND command" if you're using VFP9, I'm not sure if
that's what it was listed as on older versions.
For the _SCREEN.Caption you might be able to do this:
COMMAND =_SCREEN.Caption="hix"
Or you might even be able to get away with this:
TITLE "hix"
COMMAND = SET SYSMENU TO
You can only have one COMMAND line in an .FPW file.
--
Fred
Microsoft Visual FoxPro MVP
"Don Castiglioni" <don.castiglioni@co.travis.tx.us> wrote in message
news:%23jnDwhtvFHA.2312@TK2MSFTNGP14.phx.gbl...
>I created an application using vfp7 and I compiled as an executable. The
> executable runs fine, but it does not seem to recognize the config.fpw I
> created.
> Here is my command line in my shortcut target:
> P:\VF7\crim\hot7.exe - cp:\vf7\crim\dbf\hot
7\config.fpw
> the start in: P:\VF7\crim
>
> It seems to ignore the commands in my config.fpw, eg.
> sortwork = c:\temp
> editwork = c:\temp
> progwork = c:\temp
> SET SYSMENU to
> _SCREEN.Caption = "hix"
>
> I created this and run it on a windows 2000 machine. Am I doing something
> wrong?
>
>
|
|
|
|
|