Re: Unlocking problem...
- From: Kenneth <usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 10 Apr 2007 09:28:39 -0400
On Mon, 9 Apr 2007 20:32:33 -0600, "Tony McGuire"
<png.paradoxcommunity@com> wrote:
And for crying out loud add a *return* statement when you can't open or
attach! Just doing an errorshow() is NOT enough.
Otherwise, your code continues to try to execute even though the tcursor
doesn't have access to anything (unassigned).
Hello all,
I have removed the OPEN statement as per Liz's suggestion
(which eliminated the possible "space after alias"
difficulty Tony mentioned), and have added the Return
statements as per Tony's (subtle <g>) suggestion.
The code now looks like this, but still generates the
Unassigned Variable error on the attach line:
method arrive(var eventInfo MoveEvent)
var
tc1 tCursor
PeopleKS form
Viewed uiObject
endVar
if not tc1.attach(Viewed)
then errorShow()
endif
return
if not tc1.edit()
then errorShow()
endif
return
tc1.Viewed = today()
if not tc1.endEdit()
then errorShow()
endif
return
if not tc1.close()
then errorShow()
endIf
return
endMethod
And yes, I have checked carefully, and "Viewed" is the name
of the field to which I am trying to attach the tCursor...
Thanks for any further thoughts,
--
Kenneth
If you email... Please remove the "SPAMLESS."
.
- Follow-Ups:
- Re: Unlocking problem...
- From: Liz McGuire
- Re: Unlocking problem...
- From: Dennis Santoro
- Re: Unlocking problem...
- From: Jim Hargan
- Re: Unlocking problem...
- From: Tony McGuire
- Re: Unlocking problem...
- References:
- Re: Unlocking problem...
- From: Kenneth
- Re: Unlocking problem...
- From: Liz McGuire
- Re: Unlocking problem...
- From: Kenneth
- Re: Unlocking problem...
- From: Kenneth
- Re: Unlocking problem...
- From: Liz McGuire
- Re: Unlocking problem...
- From: Kenneth
- Re: Unlocking problem...
- From: Liz McGuire
- Re: Unlocking problem...
- From: Kenneth
- Re: Unlocking problem...
- From: Liz McGuire
- Re: Unlocking problem...
- From: Tony McGuire
- Re: Unlocking problem...
- From: Tony McGuire
- Re: Unlocking problem...
- Prev by Date: Re: Unlocking problem...
- Next by Date: Re: Unlocking problem...
- Previous by thread: Re: Unlocking problem...
- Next by thread: Re: Unlocking problem...
- Index(es):
Relevant Pages
|
|