Page 1 of 1

New Application

PostPosted: Sat Aug 12, 2017 3:42 pm
by btiguy
I've worked VPME for years, but always on the same application. Now I'm trying to start a new app and can't figure out how to do it.
I have a sappust file which I believe is fine. In my old app, I have a s<pre>fmain file. I don't see how that file is run from VPME. That file contains my setting up of classes. Should I be setting up classes some other way. I don't ever see when s<pre>fmain is run.

Re: New Application

PostPosted: Sun Aug 13, 2017 6:49 am
by Bob
File ... New Project ??

Re: New Application

PostPosted: Mon Aug 14, 2017 9:39 am
by stecenko
You said, "I don't see how that file is run from VPME."

In your old app, open th eproject builder and under code you'll see that s<pre>fmain is bolded. That indicates which prg is run on execution; it's a VFP thing, not a VPME thing.

If you right click on s<pre>fmain, you'll see that Set Main is checked.

This is all setup when you pick New Project.

I would not put any of my own code in s<pre>fmain. Instead, write a prg with all your setup code and in ProApp.cStartupAction, put...

do mySetupCode.prg