Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select different in VFP6?
Message
De
31/08/1998 09:30:38
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00129159
Message ID:
00131493
Vues:
18
>>>The following code produces an error in VFP6, but not in VFP5:
>>>
>>>SELECT submits.specno+"-"+submits.submno AS Index, LEFT(submits.descript,50) AS Description,;
>>> 0 AS statusno, {} AS datercvd;
>>> FROM submits ;
>>> WHERE Submits.ProjNo = mbhProjNo;
>>> AND Submits.ProjNo+Submits.SpecNo+'-'+Submits.Submno NOT IN ;
>>> (SELECT History.ProjectNo + History.SubmitNo FROM History) ;

>>> ORDER BY 1, 4;
>>> GROUP BY 1;
>>> INTO CURSOR step1
>>>
>>>It appears to be coming from the 'NOT IN' section which should be highlighted above. Is there something new in SQL which is tripping me up?

Another shot in the dark (your darkness will, at least, have lots of holes in the end): try

AND NOT Submits.ProjNo+Submits.SpecNo+'-'+Submits.Submno IN ;
(SELECT History.ProjectNo + History.SubmitNo FROM History) ;


i.e. put the negation operator before the condition it negates. Maybe the parser will swallow it.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform