RE: SET PROCEDURE and forms

Author: Dave Crozier

Posted: 2015-06-16 at 07:17:40

... and also don't forget that your "set path" and where your current directory is placed "curdir()" settings can affect the ability to find your procedure file if you have not given it a defined location.

I always have an init.prg program which I run immediately after opening a project. The first thing that does is:

cFolder=Application.ActiveProject.HomeDir

set default to (cFolder)

=MessageBox("Default Folder: "+cFolder)

*

Return

Then, I have various folders off the main project base called programs, Forms, Reports, Menus, Graphics etc and my set procedure command is normally:

Set procedure to programs\<subroutines_1.prg>, programs\<Subroutines_2.prg> etc....etc...

Make sure your project home folder is set correctly (This will be obvious if you run the above init.prg. If the Project home folder isn't where the project is placed then right click on the Project form and select Project Info where you can change it.

Dave

-----Original Message-----

From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Kevin Cully

Sent: 16 June 2015 13:09

To: profox@leafe.com

Subject: Re: SET PROCEDURE and forms

In addition to what other people have said, try this in the debugger

(paraphrased):

*** Set a break point "when value has changed"

*** Set the expression to be "SET('procedure')"

Your program will stop when the SET PROCEDURE value is being reset or adjusted. HTH.

CULLY Technologies, LLC

http://cullytechnologies.com

http://cully.biz

On 06/16/2015 07:54 AM, Dave Crozier wrote:

> You only need to use set procedure once in the whole application unless you do an additional set procedure which cancels the first one. If you want to extend the procedure list then you use "set procedure ... additive" which keeps any old settings and adds to it.

>

> Dave

>

> -----Original Message-----

> From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Man-wai

> Chang

> Sent: 16 June 2015 12:43

> To: ProFox Email List

> Subject: SET PROCEDURE and forms

>

> I just found that a form doesn't take the SET PROCEDURE TO line from the program that calls it.

> I have to re-issue the SET PROCEDURE command in form.init() in order to get things done.

>

> Is there some form properties that control this? Data Environment?

>

> --

> .~. Might, Courage, Vision. SINCERITY!

> / v \ 64-bit Ubuntu 9.10 (Linux kernel 2.6.39.3) /( _ )\

> http://sites.google.com/site/changmw

> ^ ^ May the Force and farces be with you!

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/18725B8CD2D5D247873A2BAF401D4AB259778F51@EX2010-A-FPL.FPL.LOCAL

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2015 Dave Crozier