Guest_imported
New member
- Jan 1, 1970
- 0
Below is my code and the error is " Input past end of file. I donno much coding, kindly help me with right code.
Option Explicit
Dim strFile As String
Dim i As Integer
Public af0, af1, af2, A, c, check_t, cosecc, cuc, cus, crc, crs, cic, cis, deltan, E, ecc, dE, Em, E_old, i0, ik, idot, j, k, l, M, M0, n, n0, omega, Omega_new, Omega0, Omegadot, phi, phi_rem, q, r, svprn, satp11, satp21, satp31, roota, t, toc_Year, toc_Month, toc_Day, toc_Hour, toc_Minute, toc_Second, svcd, svbs, svcdd, IODE, tk, toe, toc, u, v, X1, Y1, z, z1, z11, z12, z13, z14, z15, z16, z17 As Double
Private Sub cmdcalc_Click()
Open strFile For Input As #1
Do While Not EOF(1)
Input #1, svprn, toc_Year, toc_Month, toc_Day, toc_Hour, toc_Minute, toc_Second, svbs, svcd, svcdd, IODE, crs, deltan, M0, cuc, ecc, cus, roota, toe, cic, Omega0, cis, i0, crc, omega, Omegadot, idot, z1, z11, z12, z13, z14, z15, z16,z17, 18
Loop
Close #1
****************************************
I have 35 items in my text file( They are values), so I declared 35 variables giing each one certain values.
Thanks
Option Explicit
Dim strFile As String
Dim i As Integer
Public af0, af1, af2, A, c, check_t, cosecc, cuc, cus, crc, crs, cic, cis, deltan, E, ecc, dE, Em, E_old, i0, ik, idot, j, k, l, M, M0, n, n0, omega, Omega_new, Omega0, Omegadot, phi, phi_rem, q, r, svprn, satp11, satp21, satp31, roota, t, toc_Year, toc_Month, toc_Day, toc_Hour, toc_Minute, toc_Second, svcd, svbs, svcdd, IODE, tk, toe, toc, u, v, X1, Y1, z, z1, z11, z12, z13, z14, z15, z16, z17 As Double
Private Sub cmdcalc_Click()
Open strFile For Input As #1
Do While Not EOF(1)
Input #1, svprn, toc_Year, toc_Month, toc_Day, toc_Hour, toc_Minute, toc_Second, svbs, svcd, svcdd, IODE, crs, deltan, M0, cuc, ecc, cus, roota, toe, cic, Omega0, cis, i0, crc, omega, Omegadot, idot, z1, z11, z12, z13, z14, z15, z16,z17, 18
Loop
Close #1
****************************************
I have 35 items in my text file( They are values), so I declared 35 variables giing each one certain values.
Thanks