< snip >
>The following line has the array command of VB, which I have difficulty implementing in VFP.
>
>loAddBook.TextFileColumnDataTypes = Array(1, 1, 1, 1, 1, 1)
>
>How can I pass the right values to 'TextFileColumnDataTypes' Property in VFP. I tried passing an array in VFP, but failed.
< snip >
Actually you do not need of it if you leave all the values to 1 - General data type. So if in your case it is applicable - just skip this line - it will work without it.
But... as an option - this is probably the thing you need:
loAddBook.TextFileColumnDataTypes = CREATEBINARY(Replicate(Chr(1),6))
HTH
Zlatin Zlatev,
MCSD (VS6)Make solutions, not programs!