Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My Application closes as soon as it is started
Message
From
25/06/2001 14:40:36
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
 
 
To
25/06/2001 10:10:02
Ramachandran Duraiswami
C.G.International Pvt. Ltd.
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00523037
Message ID:
00523142
Views:
10
>I've built an application(exe) based on the main prg of a project. But as soon as I open the application, it closes down itself immediately. what may be the problem or is there any aprticular way of building an application?


if you haven't gotten this to run yet, make this most simplistic
test, to be sure you understand how to make the form appear & disappear.
create a project call Test.PJT ... in it, create a main program called
Test_Main.prg ... create a form called frm_Test. (for sake of simplicity
create your project, test_main.prg, and frm_test all in the same
directory (call it my_test).

Test_Main.PRG
*------------
DO FORM frm_Test
READ EVENTS
CLOSE ALL
CANCEL
*------------

create your frm_Test. right click to get context menu, select properties, and set "WindowType" property to Modeless.
add a button to your form. name it cmd_Close. in the cmd_Close.CLICK
event (right click the button and select Code) - put the following
THISFORM.RELEASE
CLEAR EVENTS
Highlight the TestMain program and RUN it from the development environment
to be sure it runs ok. Now BUILD it and close the development environment.
Create a shortcut for your new EXE and test it.
patrick
Previous
Reply
Map
View

Click here to load this message in the networking platform