Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using INLIST with select statement
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Using INLIST with select statement
Divers
Thread ID:
00417794
Message ID:
00417794
Vues:
50
I am trying to do a select statement using this INLIST(), It doesn't seems to work.

for i = 1 to thisform.selectedlist.listcount
if i < 2 then
SQL_String = alltrim(thisform.selectedlist.ListItem(i))
else
SQL_String = SQL_String + "," + alltrim(thisform.selectedlist.ListItem(i))
endif
endfor

select all a.cid, a.cname, b.csemester, b.ccourse, b.ccouroff, b.cstudent from sys_mast a, enroll b where a.cid = b.cstudent and INLIST(rtrim(b.csemester), SQL_String) into dbf c:\attend\temp

when I brows the temp table it is empty.

thank you for any help.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform