Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table buffering error
Message
 
À
05/11/2001 18:09:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00577587
Message ID:
00577976
Vues:
25
I understand this pretty much, but not really this line.
if indexseek(InvLinesCursor.Product_ID, .t., 'product', product_id')
However, I tried it anyway and when I save the code it tells me "Function Name missing". I suspect I'm missing a delimiter of some sort.

Thanks for spending time on my problem.

>Kenneth (via Tom),
>
>Tom brings up a good point when asking about the cursor name. Each time through your SCAN/ENDSCAN, you do a seek for InvoiceHeader.Invoice_ID. Since you are SCANning through a cursor, invoiceHeader.invoice_id does not change.
>
>I've removed the buffering commands for this example:
>
>
>set deleted on
>Select * from InvoiceDetail Where Invoice_ID = InvoiceHeader.Invoice_ID ;
>    into cursor InvLinesCursor
>scan   && we are scanning invLinesCursor, not invoiceDetail table
>    if indexseek (InvLinesCursor.Product_ID, .t., 'product', product_id')
>        * product found
>        select product
>	Replace UseSeason with m.currentseason
>    else
>        * product not found...error processing here
>        * referential integrity is supposed to prevent this
>    endif
>endscan
>
___________________________
Kenneth Wonderley
http://www.wonderley.com


...the fruit of the Spirit is love, joy, peace, patience, kindness, goodness, faithfulness, gentleness and self-control.
Galatians 5:22 & 23
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform