Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make an EXE? Newbie VFP6
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00170938
Message ID:
00170986
Views:
25
>If you have the default program or form set it will be the first thing that runs when you run a compiled .exe. Simply build the exe and run it from VFP or outside of VFP. If you haven't excluded files from the project, VFP will compile all the necessary files into your exe for you.
>
>If you need to create a distribution, run the setup wizard.

do setup
do mainmenu
do evloop
do cleanup

Procedure SETUP
set default to '\\peewee2\dbdev\bftmax98'
&& What is best way to make this ask the
&& user where the data is just one time?
on shutdown do CleanUp
set century on
set mark to '.'
set date to ansi
set deleted on
set multilocks on
set escape on
set optimize on
set refresh to 0,0
set sysmenu to default
set talk off
set view off
_Screen.Icon = 'DEVCFT.ICO'
set sysmenu off
Return .t.

Procedure MainMenu
Do Menu01.mpr
return .t.

Procedure EvLoop
do form Splash
do form OrdProc noshow
do form CatBrows1 noshow
do form CatBrows2 noshow
do form MaxBar01
&& Since forms take a long time
&& to load data sessions, I thought
&& this might trick them into all
&& loading at app "boot time".
read events
return .t.

Procedure CleanUp
clear events
wait window 'Shutdown trap from setup environment' nowait
clear all
close all
flush
quit
return .t.
Previous
Reply
Map
View

Click here to load this message in the networking platform