Kurt
Two ideas that spring to mind:
1) I presume the list box gets its data from somewhere - an array or a table - why not run through the data source?
2) Would set Lockscreen = .T. before the "run" work?
Terry McDonnell
>Hi,
>
>I have the following code :
>
>cText=""
>FOR iCounter = 1 TO ThisForm.lbxListbox.ListCount
> ThisForm.lbxListbox.listindex=iCounter
> cText=cText + alltrim(ThisForm.lbxListbox.value) + CHR(13)
>ENDFOR
>
>The code works fine... the only problem i have is that when the code runs on a form the listbox scroll when the pointer is running down the listbox. Thats normal but not so clean to see for the user.
>
>Is it possible to run down the list and get the information avoiding that the listbox is scrolling down ?
>
>Thnx
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.