>Hi,
>
>When i wrote mvar=adir(tabfile,'*xls')
>
>In command window and i used in the form with a combobox this, its working.
>But when i dont wrote in command wndow this a meesage array tabfile not found or it's not array
>
>please help :)
Try adding a new property to the form aTabFiles[1].
Then use
mVar = adir(thisform.aTabFiles, '*.xls')
and then use thisform.aTabFiles as combobox rowsource.
If it's not broken, fix it until it is.
My Blog