Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Correct
Message
De
06/10/2011 16:00:56
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Correct
Divers
Thread ID:
01525797
Message ID:
01525797
Vues:
113
hi all,

i need help to correct this code,
i try to use this code not work


CLOSE ALL
Local lnOffice

USE salah2
SELECT DISTINCT no from salah2 INTO CURSOR junk

SCAN
lnoffice = junk.no
.
.

endscan




i need to correct this code with another way
CLOSE ALL
USE salah2
SET FILTER TO no=20&&lnoffice = junk.no
COUNT TO s
*brow
SELECT DISTINCT no,dept  FROM salah2 WHERE no=20  INTO CURSOR mycur
*brow
m.dept=dept
m.no=no
*? dept,no
COUNT TO k
*? k, s,dept,no

 USE mytable
 APPEND BLANK
 replace no WITH m.no
 replace nam WITH m.dept
 
 replace dis WITH k
 replace all WITH s
 *****************************************************************
CLOSE ALL
USE salah2
SET FILTER TO no=42
COUNT TO s
brow
SELECT DISTINCT no,dept  FROM salah2 WHERE no=42  INTO CURSOR mycur
brow
m.dept=dept
m.no=no
*? dept,no
COUNT TO k
*? k, s,dept,no
 USE mytable
 APPEND BLANK
 replace no WITH m.no
 replace nam WITH m.dept
 
 replace dis WITH k
 replace all WITH s
***********************
CLOSE ALL
USE salah2
SET FILTER TO no=...etc
.
.
.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform