At 05:54 2013-12-12, Jeff Johnson j...@san-dc.com wrote:
Thanks for all your help! The main method in the class is
dodatacall(). I wrapped the entire process in a try catch and I get
my error message and it gracefully exits the method.
But does it kill the class?
Custom does not
).
--
rk
-Original Message-
From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Gene
Wirchenko
Sent: Friday, December 13, 2013 2:15 PM
To: profoxt...@leafe.com
Subject: Re: How to kill a class - Solved
But does it kill the class?
Custom does not have a .Release
-boun...@leafe.com] On Behalf Of Gene
Wirchenko
Sent: Friday, December 13, 2013 2:15 PM
To: profoxt...@leafe.com
Subject: Re: How to kill a class - Solved
But does it kill the class?
Custom does not have a .Release method so I simply use:
release this
If your
Fred: I am catching the error in the error method of the custom class
object. What I want to do is be able to destroy the object and return
to the form. I am calling a prg from a form method. The prg
instanciates the class in question.
Jeff
Jeff Johnson
SanDC, Inc.
(623)-582-0323
object = .NULL.
release object
is what I do all the time. The situation here is that the error occurs
inside the object. Can you release an object in its error method?
Jeff
Jeff Johnson
SanDC, Inc.
(623)-582-0323
www.san-dc.com http://www.san-dc.com
www.cremationtracker.com
I guess you can
I never tried but it occurs to me that you could do something like:
** Error event inside your class
PROCEDURE ERROR
LPARAMETERS nError, cMethod, nLine
** you could monitor the error number and determine what action to
take, with a do case construct
do case
Procedure error
...
CANCEL
?
Thierry Nivelet
FoxInCloud
Give your VFP app a second life in the cloud
http://foxincloud.com/
Le 12/12/13 13:13, Jeff Johnson a écrit :
object = .NULL.
release object
is what I do all the time. The situation here is that the error
occurs inside the object.
, December 12, 2013 7:11 AM
To: profoxt...@leafe.com
Subject: Re: How to kill a class
Fred: I am catching the error in the error method of the custom class
object. What I want to do is be able to destroy the object and return to the
form. I am calling a prg from a form method. The prg instanciates
Thanks for all your help! The main method in the class is
dodatacall(). I wrapped the entire process in a try catch and I get my
error message and it gracefully exits the method.
Thanks!
Jeff
Jeff Johnson
SanDC, Inc.
(623)-582-0323
www.san-dc.com http://www.san-dc.com
Hi, Jeff
Maybe I'm losing my marbles (no 'maybe', my wife would say!), but you're
not in a 'class', you're in an object that is an instance of the class.
So isn't the answer this.release()?
Dan
On 12/11/13 01:34 PM, Jeff Johnson wrote:
I'm kind of drawing a blank here. I have a custom
On Wed, Dec 11, 2013 at 3:34 PM, Jeff Johnson j...@san-dc.com wrote:
I'm kind of drawing a blank here. I have a custom class that does an
import from sql server to vfp. If it creates and error, I can't seem to
figure out how to immediately exit the class to I can check the error. I
have to
You are correct, but the instance of a custom class does not have a
release method.
Thanks,
Jeff
Jeff Johnson
SanDC, Inc.
(623)-582-0323
www.san-dc.com http://www.san-dc.com
www.cremationtracker.com http://www.cremationtracker.com
www.arelationshipmanager.com
I guess I did not make myself clear. I have an import object. It has
no interface and is based on a custom class. It opens tables, does
queries on sql server tables and then populates the tables and runs as a
server so to speak. It does the import every 10 minutes. I have been
using this
. Then you can bring up the
debugger. This assumes you can break it reliably in the dev environment.
--
rk
-Original Message-
From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Jeff Johnson
Sent: Wednesday, December 11, 2013 5:13 PM
To: profoxt...@leafe.com
Subject: Re: How
Maybe use TRY/CATCH and handle the error?
Fred
On Wed, Dec 11, 2013 at 3:12 PM, Jeff Johnson j...@san-dc.com wrote:
I guess I did not make myself clear. I have an import object. It has no
interface and is based on a custom class. It opens tables, does queries on
sql server tables and
Check Help on RELEASING OBJECTS and related
I usually do something like this:
do form myform name oForm linked
do things with the oForm object properties and then
oForm.release
oForm = NULL
Of course that applies to a form, thus the call to the release method.
For another object do
On Wed, Dec 11, 2013 at 4:40 PM, Fred Taylor fbtay...@gmail.com wrote:
Maybe use TRY/CATCH and handle the error?
---
You should be able to identify what you want in the catch in VFP I believe.
In .NET
catch (SqlException se)
{
String errorwas = se.Message;
var InMessage
Jeff Johnson wrote on 2013-12-11:
I guess I did not make myself clear. I have an import object. It has
no interface and is based on a custom class. It opens tables, does
queries on sql server tables and then populates the tables and runs as a
server so to speak. It does the import
18 matches
Mail list logo