Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xform.prior()
Message
From
07/10/2003 15:20:39
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
07/10/2003 14:40:13
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00835896
Message ID:
00835918
Views:
9
Fred,
Looks like there is a bug in kBizObj.Prior() that would prevent children from being requeried specifically if the record pointer was on the second record in the list.

You may want to temporarily change the following code in your kBizObj.Prior() until Kevin gets this fix and makes the framework change:
IF INLIST(lnRetVal, FILE_OK, FILE_BOF)
   This.RequeryChildren()
ENDIF
Should be :
IF INLIST(lnRetVal, FILE_OK, FILE_BOF, FILE_FIRST)
   This.RequeryChildren()
ENDIF
BTW, something similar exists in kBizObj.Next() when issuing the call on the penultimate (and here I thought I'd never have a chance to use that word) record in your view.

Here's the fix:
Replace
IF INLIST(lnRetVal, FILE_OK, FILE_EOF)
   This.RequeryChildren()
ENDIF
with :
IF INLIST(lnRetVal, FILE_OK, FILE_EOF, FILE_LAST)
   This.RequeryChildren()
ENDIF
Hope that helps,
---J

>I am having trouble with children when using xform.prior() from the second record to get to the first. The children are not requeried.
>If I use xform.first() it works. If I Use xform.requery() it shows the children to the first parent record. If I use xform.prior() anywhere else but on the second record, it works. I suspect that the beginning of file marker in the header file is somehow fooling the requery of the children to abort.
>
>Any help would be appreciated.
>
>Fred
Previous
Reply
Map
View

Click here to load this message in the networking platform