Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Buffering
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00270717
Message ID:
00271164
Vues:
22
Thanks Jim. I printed your reply and plan to use it.
BTW, Is it improper conduct to reply with a Thanks?


>Alan,
>
>Use all of the agruments for TableUpdate(). They are in order;
>
>nRows = 0 one row, 1 all rows and fail on any problem, 2 all rows and do not fail but record failed records in the array argument
>
>lForce = .T. force the update over any other user's changes, .F. do not force the update
>
>cAlias = The alias name of teh table to be updated (always use this argument as in an event driven interface you have no idea what the currently select work area is).
>
>aAarray = the name of an array to record the failed records for nRows = 2
>
>Also, always check the retunr value from TableUpdate(), never depend on it succeeding because it may not. Your code can be;
>
>
>IF NOT TableUpdate(1,.F.,"Customer")
>   AERRORS(laErrors)
>   * Process laErrors to see what went wrong
>   * and do what you need to to correct the problem
>ENDIF
>
Alan Trosky
MIS Director
Pennsylvania Bar Association
Harrisburg PA 17108
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform