Hi All!
I have a listbox which uses a cursor as its RowSource. I am just curious if there is another way to make it more efficient rather than putting the first statement.
Here's the codes:
thisform.list1.RowSOURCE = ""
if thisform.pageframe1.page1.check1.value = 1
select * ;
from myTable ;
WHERE SomeConditions
into Cursor myCursor
thisform.list1.RowSOURCE = "myCursor"
endif
An error message occurs if I remove the first line.
Regards
I have a listbox which uses a cursor as its RowSource. I am just curious if there is another way to make it more efficient rather than putting the first statement.
Here's the codes:
thisform.list1.RowSOURCE = ""
if thisform.pageframe1.page1.check1.value = 1
select * ;
from myTable ;
WHERE SomeConditions
into Cursor myCursor
thisform.list1.RowSOURCE = "myCursor"
endif
An error message occurs if I remove the first line.
Regards