S sultan87 Active Member Licensed User Longtime User Oct 21, 2011 #1 good evening I wish to know the name of the fields of my table Curseur = SQL.ExecQuery("SELECT * FROM Relevés") NumberOfColumns = curseur.ColumnCount Dim ColumnName(NumberOfColumns) As String ' names of the columns For i = 0 To curseur.ColumnCount - 1 ColumnName(i) =curseur.GetColumnName(i) Next i When I compile it leaves me an error Compiling code. 0.78 Generating R file. 0.01 Compiling generated Java code. Error B4A line: 71 ColumnName(i) =curseur.GetColumnName(i) javac 1.6.0_27 src\BA4\Gestion_Energies\frmhistoreleves.java:322: not a statement _i; ^ 1 error best regards
good evening I wish to know the name of the fields of my table Curseur = SQL.ExecQuery("SELECT * FROM Relevés") NumberOfColumns = curseur.ColumnCount Dim ColumnName(NumberOfColumns) As String ' names of the columns For i = 0 To curseur.ColumnCount - 1 ColumnName(i) =curseur.GetColumnName(i) Next i When I compile it leaves me an error Compiling code. 0.78 Generating R file. 0.01 Compiling generated Java code. Error B4A line: 71 ColumnName(i) =curseur.GetColumnName(i) javac 1.6.0_27 src\BA4\Gestion_Energies\frmhistoreleves.java:322: not a statement _i; ^ 1 error best regards
Erel B4X founder Staff member Licensed User Longtime User Oct 22, 2011 #2 You should change: Code: Copy Next i To: Code: Copy Next Upvote 0
S sultan87 Active Member Licensed User Longtime User Oct 22, 2011 #3 good evening sometimes thank you it is necessary to have the sight d' a third nobody I post another message concerning "synchronization" could you give me your point of view Best regards Upvote 0
good evening sometimes thank you it is necessary to have the sight d' a third nobody I post another message concerning "synchronization" could you give me your point of view Best regards