Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form does not release
Message
From
14/01/2003 05:21:37
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00740845
Message ID:
00741341
Views:
35
>Ernest
>
>I don't see anything wrong. What is the scope of loItem?
>
>Is that the only code that accesses the listview?
>
>Jos - it would speed it up only a little bit to hoist the WITH/ENDWITH out of the loop.
>
>>
>
>*--- POPULATE LISTVIEW
>>SCAN
>>    WITH ThisForm.lvCritResult.listitems
>>	loItem = .Add(, , id_acct)
>>	loItem.SubItems(1) = id_ticket
>>	loItem.SubItems(2) = IIF (EMPTY dt_request), "",dt_request)
>>	loItem.SubItems(3) = del_type	
>>	loItem.SubItems(4) = namelst
>>	loItem.SubItems(5) = namefrt
>>	loItem.SubItems(6) = street
>>	loItem.SubItems(7) = bcity
>>	loItem.SubItems(8) = truck_num
>>	loItem.SubItems(9) = stop_num
>>	loItem.SubItems(10) = sched_arv
>>	loItem.SubItems(11) = sched_dep
>>    ENDWITH
>>ENDSCAN
>
David,
The scope is local. The only other reference I have to the listview is a .clear.

Thanks for trying.
Ernest
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform