Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Starting VFP and command=
Message
From
31/12/2007 17:10:51
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
31/12/2007 14:42:12
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01278717
Message ID:
01278756
Views:
23
>Hi,
>
>I have:
> COMMAND=MyStartup.prg in my .FPW file and
>
>In MyStartup, I have:
> uMtToolbar() && Which plug my own toolbar to the VFP desktop
> uIDEWinUp() && Which tab-dock properties windows, toolbox and so on to screen edge
>
>Everything works as expected if I start VFP normally.
>
>However, if I double-click a scx file from Windows explorer (which starts VFP and open up the form designer for the scx file), then things become different, as though both the uMtToolbar() and uIDEWinUp() are not executed??? No toolbar, no tab-dcok windows... only the properties window is floting there.
>
>Why? What should I do in order to make VFP executes my codes in MyStartup before it open up the scx file in the form designer?

You aren't in the home() directory if you start VFP by doubleclicking a file somewhere else. You may want to set

command=do home()+"mystartup"

and there in mystartup.prg, first do
set path to (home()) additive
before calling any of the code.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform