Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record out of range error
Message
De
02/07/2007 10:59:38
 
 
À
02/07/2007 10:36:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01237135
Message ID:
01237144
Vues:
17
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"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform