Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form does not release
Message
 
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00740845
Message ID:
00740974
Views:
31
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
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform