View Single Post
  #1 (permalink)  
Old 05-16-2008, 04:15 PM
Luiji Luiji is offline
Newbie
 
Join Date: May 2007
Posts: 7
Default table addRow problem

please help
I have a table whith 4 colums, the first is sting the other numbers
Code:

Sub Button4_Click
Form1.Show
table1.AddCol(cString,"Item",85)
table1.AddCol(cNumber,"Quant.",40)
table1.AddCol(cNumber,"P.Unit.",50)
table1.AddCol(cNumber,"P.Parc.",50)
End Sub

Sub btnGravar_Click
Nome=tbNome.text ' item
Quantidade=tbQuantidade.Text 'Quant.
PrecoUnidade=tbPrecoUnidade.Text 'P.Unit.
precoParcial=tbQuantidade.Text*tbPrecoUnidade.Text 'P.Parc.
table1.AddRow(Nome,Quantidade,PrecoUnidade,precoPa rcial)
End Sub

it works fine on Run mode in IDE, but dont work compiled to Pc or to PPC
error:
An error ocurred on sub_btngravar_click
Input string was not in correct format
Reply With Quote