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!
_______________________________________________
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/CAGv=MJB-10yH_-CP6mXczjuR_+rpMRBmTmagcOPOGYAr3RB=UQ@mail.gmail.com
** 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.
Um, they do. DataSessions only compartmentalise data.
Are you do a CLEAR ALL or anything between SET PROCEDURE and starting
your form?
Are your procedures etc. in scope?
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm
On Tue, 16 Jun 2015, at 12:43 PM, Man-wai Chang wrote:
> 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/1434455292.2687604.296850025.485CF608@webmail.messagingengine.com
** 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.
SET PROCEDURE is not dependent of data session.
I don't really understand your problem, can you expand on the details? How
you call, where you call, etc.
El 16/06/2015 13:43, "Man-wai Chang" <changmw@gmail.com> escribió:
> 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/CAGQ_Junj+WS82fKyb0=dLbjoUwGZ=rvh+jwQQBkDj9hvSOZf+A@mail.gmail.com
** 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.
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/18725B8CD2D5D247873A2BAF401D4AB259778F11@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.
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
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/558011D0.5070606@cullytechnologies.com
** 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.
... 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
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.
I forgot to add that you can use "set path to <path1>; <path2>" ... etc before the "set proc to " command and this will set the search paths for the procedures without hard coding them in in the "set proc" command.
Dave
-----Original Message-----
From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Dave Crozier
Sent: 16 June 2015 13:18
To: ProFox Email List
Subject: RE: SET PROCEDURE and forms
... 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
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/18725B8CD2D5D247873A2BAF401D4AB259778F77@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.
I defined a class programmatically in MyClass.prg.
I SET PROCEDURE TO it in Main.prg.
I created a form, and in form.Init() I tried to
CREATEOBJECT("MyClass"), and that failed.
Once I SET PROCEDURE again in form.Init(), it worked.
Puzzling....
SET PROCEDURE TO doesn't work with programmatic class definition?
On Tue, Jun 16, 2015 at 7:50 PM, Fernando D. Bozzo <fdbozzo@gmail.com> wrote:
> SET PROCEDURE is not dependent of data session.
>
> I don't really understand your problem, can you expand on the details? How
> you call, where you call, etc.
--
.~. 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!
_______________________________________________
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/CAGv=MJB+KbHMYZ3aSWMj=1enPSDBWgJOm56X_4ewNNVrDd8uFQ@mail.gmail.com
** 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.
> SET PROCEDURE TO doesn't work with programmatic class definition?
It does.
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm
_______________________________________________
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/1434538239.3039559.297857177.0A3BAEA9@webmail.messagingengine.com
** 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.
Do you possibly have a CLEAR ALL in your class definition?
________________________________________
From: ProfoxTech <profoxtech-bounces@leafe.com> on behalf of Man-wai Chang <changmw@gmail.com>
Sent: Wednesday, June 17, 2015 6:44 AM
To: profoxtech@leafe.com
Subject: Re: SET PROCEDURE and forms
I defined a class programmatically in MyClass.prg.
I SET PROCEDURE TO it in Main.prg.
I created a form, and in form.Init() I tried to
CREATEOBJECT("MyClass"), and that failed.
Once I SET PROCEDURE again in form.Init(), it worked.
Puzzling....
SET PROCEDURE TO doesn't work with programmatic class definition?
_______________________________________________
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/BLUPR10MB04510496FAA658ECB2AB0151D2A60@BLUPR10MB0451.namprd10.prod.outlook.com
** 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.