Jimi,
Make myarray a property of the form. This way it'll be always visible to the listbox.
MyList.RowSource = Thisform.MyArray
>hi,
>
>I have a listbox "MyList" and a one-dimensional array "MyArray"
>
>MyList.RowSource=MyArray
>MyList.RowSourceType=5
>
>It works fine when I run the program within VFP, but when I run the compiled .exe, it says "MyArray is not an array."
>
>Any idea?
>
>Thanks in advance,
>Jimi
--sb--