Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Want to show all the values of cursor to list2
Message
De
23/04/2003 11:32:15
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Want to show all the values of cursor to list2
Divers
Thread ID:
00780631
Message ID:
00780631
Vues:
44
I am doing the following to get all the records to cursor culist2 and finally show all the values into the list2. Could you please tell me i am doing something wrong here:for the list2.sourcetype i mentioned culist2:

CREATE CURSOR culist2 (project_no C(3), workpkg_no C(5),sub_title C(150))
for n = 1 to thisform.list1.listcount
col1 = thisform.list1.listitem(n, 1)
col2 = thisform.list1.listitem(n,2)
select project_no,workpkg_no,sub_title from sub where project_no = col1 and workpkg_no = col2 into cursor temp
select cuList2
append from dbf("temp")
use in select("temp")
endfor


WITH thisform.list2
.RowSourceType = 3 && SQL Statement
.RowSource = culist2
.Requery()
.refresh()
.setfocus()
ENDWITH


Thank you very much.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform