I'm using VB 6.0. I'm doing a simple read from a text file. My partial code looks like this:

Line Input #nInvFile, sInvTemp
While Not EOF(nInvFile)

Line Input #nInvFile, sInvTemp
FrmBorwr.CboInvestors.AddItem sInvTemp

Wend

I get an error message saying: !Compile error. Expected array (referring to EOF).

Can someone help me? Thanks in advance.

Madi