Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Must repeat line of code to get results
Message
 
 
À
15/06/2009 16:35:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01406206
Message ID:
01406215
Vues:
76
It's not a bug but incorrect use of DELETED() function. See Queries and functions which accept alias as parameter for details.
SET DELETE ON
		SELECT * FROM SourceDBF ;
			WHERE ;
			PRIN + Agent IN (SELECT PRIN + Agent FROM FAT_BASIC_AREAS_EXCLUSIONS) ;
			INTO CURSOR curToRemove NOFILTER
>


>I have a SQL query that I am trying to run and it will not return any records in the result set when I run it programatically. When I run the SQL command from the command line, it works fine. My workaround is to run the same query twice in a row. The first time it runs, nothing is returned, the second time it is run, I get the proper results.
>
>I know that this is a bug in VFP. How do I know that other queries that return an empty result aren't a result of a VFP bug? Has anyone else run into this problem? What did you do to resolve the issue?
>
>Here is the SQL:
>		SELECT * FROM SourceDBF ;
>			WHERE ;
>			PRIN + Agent IN (SELECT PRIN + Agent FROM FAT_BASIC_AREAS_EXCLUSIONS) AND ;
>			NOT DELETED() ;
>			INTO CURSOR curToRemove NOFILTER
>
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform