Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange results from SQL
Message
De
06/05/1997 10:14:57
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordanie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Strange results from SQL
Divers
Thread ID:
00030984
Message ID:
00030984
Vues:
74
I am having following code in my program :-

tmpfldname="main.code"
tmpfilename="main"

When I issue the below written sql command :-

select distinct eval(tmpfldname) from (tmpfilename) into array test

It returns me 124 records (which is correct),
But if I issue this same command again, It gives me only one record.

Whereas, If i issue the below written command any no. of times, It always returns me 124 records

select distinct &tmpfldname from (tmpfilename) into array test

I don't understand why macro is working and eval is not or am I doing anything wrong. Pls advs.
Répondre
Fil
Voir

Click here to load this message in the networking platform