Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New Update Command ( VFP9 )
Message
De
10/04/2005 09:43:18
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
Visual FoxPro
Divers
Thread ID:
01003192
Message ID:
01003198
Vues:
35
>Hi all,
>
>I have resident.dbf
>iid
>Cname
>NoitelephoneIdReportActif
>itelephoneid
>
>cFiltre.dbf
>iid
>itelephoneid
>ireport
>
>I want replace in resident.dbf the field "Resident.NoitelephoneIdReportActif " WITH cFiltre.ireport
>if resident.itelephoneid = cFiltre.itelephoneid and if not 0 ( zero ).
>
>I try this but it is not good....
>I want one shot command
>
>
>
>
>  CURSORSETPROP("Buffering" ,5,"Resident")
>
>*-- ICASE( F.ireport = NoReport AND  F.lactif = .T. AND  F.ireport = NoReport , F.ireport , 0 );
>
>  UPDATE Resident SET NoitelephoneIdReportActif =  F.ireport ;
>      FROM cFiltre F ;
>    WHERE F.itelephoneid = Resident.itelephoneid
>
>
>  SELECT Resident
>  =TABLEUPDATE(.T.)
>
>
  CURSORSETPROP("Buffering" ,5,"Resident") && WHY YOU USE A BUFFER ? 

*-- ICASE( F.ireport = NoReport AND  F.lactif = .T. AND  F.ireport = NoReport , F.ireport , 0 );

  UPDATE R SET NoitelephoneIdReportActif =  F.ireport ; && CHOICE WHERE AND WHAT TO UPDATE
      FROM Resident R JOIN cFiltre F ON F.iid = R.iid; && BUILD THE WORK SET
    WHERE F.itelephoneid = R.itelephoneid   && FILTER THE WORK SET

  SELECT Resident
  =TABLEUPDATE(.T.)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform