I am getting a bad row index in the following code.
iProductRows = 1
fProducts = Open "products.dat" For Input
While Not Eof(fProducts)
gvProducts.Rows.Count = iProductRows
Line Input #fProducts, sName
Line Input #fProducts, iLargePrice
Line Input #fProducts, iSmallPrice
Line Input #fProducts, iESMeatPrice
Line Input #fProducts, iELMeatPrice
Print iProductRows
gvProducts[iProductRows, 0].text = sName
gvProducts[iProductRows, 1].Text = iLargePrice
gvProducts[iProductRows, 2].Text = iSmallPrice
gvProducts[iProductRows, 3].Text = iESMeatPrice
gvProducts[iProductRows, 4].Text = iELMeatPrice
iProductRows = iProductRows + 1
Wend
Any idea why?
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user