Why do I get a different result from these two operations?
Gives 297 and is correct, butCode:Open sTxtFile For Input As iFile frmMain.txtMandates.Text = Trim(Input(LOF(iFile), iFile)) Close #iFile Open sTxtFile For Input As iFile Do While Not EOF(iFile) Line Input #iFile, sTemp lCount = lCount + 1 Loop Close #iFile
Gives me 298.Code:lCount = SendMessage(ByVal frmMain.txtMandates.hwnd, EM_GETLINECOUNT, 0, 0)
I would prefer to use the API call on the text box to do this, but if this is inaccurate I can't.
Regards





Reply With Quote