Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Want to show all the values of cursor to list2
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement