Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New Update Command ( VFP9 )
Message
From
10/04/2005 09:43:18
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01003192
Message ID:
01003198
Views:
34
>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.)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform