Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record out of range error
Message
From
02/07/2007 10:59:38
 
 
To
02/07/2007 10:36:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01237135
Message ID:
01237144
Views:
18
What does:
SELECT curOrderParts
SET ORDER TO PriDetID
IF INDEXSEEK(curGridItems.PriDetID,.T.,'curOrderParts')
    DO FORM frmOrderParts WITH RECNO("curOrderParts") TO locSaved      && <== Error
ELSE
    MESSAGEBOX("Please select a part before proceeding.",0+48)
    RETURN .f.
ENDIF
do? Does the form frmOrderParts use the default data session? What code do you have in the load or init of the form to handle the table and record position?




>Hi all,
>
>We have been receiving a "Record out of range" error in the following code snippit. It appears to be the RECNO("curOrderParts") expression, but that does not make any since to me. Has anyone encountered this before?
>
>
>SELECT curOrderParts
>SET ORDER TO PriDetID
>SEEK curGridItems.PriDetID
>
>IF FOUND("curOrderParts")
>	DO FORM frmOrderParts WITH RECNO("curOrderParts") TO locSaved      && <== Error
>ELSE
>	MESSAGEBOX("Please select a part before proceeding.",0+48)
>	RETURN .f.
>ENDIF
>
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform