Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Main prg & xxx_app.prg, I'm confused
Message
 
 
To
18/11/2001 05:09:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00583202
Message ID:
00583223
Views:
18
This message has been marked as the solution to the initial question of the thread.
>I've generated an application.prg with the application builder and don't know where to put my main program code. Should I write a separate main.prg? If I do, how and where do I interrelate the _app and a main.prg? I've built my forms and can run them individually in the project manager. How can I "do" and release them from a central program? This basic subject is nowhere in the help file. I'm really stuck!

What you could do is open the project in the Project Manager. Expand Code node, expand Programs node. Look for the entry that is in bold. This is your MAIN prg file. Somewhere in there where you think it is appropriate, insert a procedure call:
local llRetVal
llRetVal = MyMainPrgCode()
if not llRetVal
   return .f.
endif
Go to the very bottom of that prg file, and add the following:
PROCEDURE MyMainPrgCode
   * put your code here
   IF ALL_DID_NOT_GO_WELL
      return .f.
   ENDIF
   RETURN .t.
ENDPROC
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform