Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select different in VFP6?
Message
From
31/08/1998 09:30:38
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00129159
Message ID:
00131493
Views:
19
>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform