Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New Update Command ( VFP9 )
Message
From
10/04/2005 12:38:47
 
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:
01003209
Views:
21
This message has been marked as the solution to the initial question of the thread.
noreport = 19
SELECT Resident
SCAN
  REPLACE NoitelephoneIdReportActif ;
     WITH IIF(LOOKUP(cFiltre.ireport,itelephoneid,cFiltre.itelephoneid)=m.noreport,m.noreport,0)
ENDSCAN
* OR
  REPLACE IN Resident ALL ;
     NoitelephoneIdReportActif ;
        WITH IIF(LOOKUP(cFiltre.ireport,itelephoneid,cFiltre.itelephoneid)=m.noreport,m.noreport,0)
* OR if supported
UPDATE Resident ;
   SET  NoitelephoneIdReportActif ;
     = NVL((SELECT F.ireport FROM cFiltre F WHERE F.itelephoneid=Resident.itelephoneid AND F.ireport = m.noreport),0)
* OR if F.itelephoneid,F.ireport  is primary
UPDATE R SET  NoitelephoneIdReportActif = NVL((F.ireport,0);
	FROM Resident R LEFT JOIN cFiltre F WHERE F.itelephoneid=R.itelephoneid AND F.ireport = m.noreport
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform