Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert records in a view
Message
 
À
29/10/1999 04:12:25
Marco Beuk
Innovero Software Solutions
The Hague, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00283021
Message ID:
00283672
Vues:
19
Marco,

In order to understand what really happens, you might want to update row by row, like in the following construct:
llToast = .F.
lnNext = GETNEXTMODIFIED(0)

BEGIN TRANSACTION
DO WHILE lnNext # 0
  GO (lnNext)
  IF ! TABLEUPDATE()
    llToast = .T.
    EXIT
  ENDIF
  lnNext = GETNEXTMODIFIED(lnNext)
ENDDO

IF llToast
  ROLLBACK
  TABLEREVERT(.T.)
  ErrorMsg(this.cMsgUpdateFailed )
  RETURN .F.
ELSE
  END TRANSACTION
ENDIF
José
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform