Hi Everyone :sign0085:
I've been using VB6 and VBA for too long!!!!
Can anyone help me please, I can;t see what's wrong with the following code:
If rstConsultants.RowCount > 0 Then
For Counter = 0 To Consultant.Size -1
If Consultant.getitem(Counter) = rstConsultants.GetString("ConsultantName") Then
Consultant.SelectedIndex = Counter
End If
Next Counter
End If
I get the following error when compiling:
Compiling generated Java code. Error
B4A line: 95
Consultant.SelectedIndex=Counter
javac 1.6.0_23
src\SBS\co\uk\LegionellaSurveyor\configscreen.java:422: not a statement
_counter;
^
1 error
All I'm trying to do is after populating a spinner with the names of consultants, is set the selected item to the one that matches the one I'm looking for.
Thanks inadvance for your help
I've been using VB6 and VBA for too long!!!!
Can anyone help me please, I can;t see what's wrong with the following code:
If rstConsultants.RowCount > 0 Then
For Counter = 0 To Consultant.Size -1
If Consultant.getitem(Counter) = rstConsultants.GetString("ConsultantName") Then
Consultant.SelectedIndex = Counter
End If
Next Counter
End If
I get the following error when compiling:
Compiling generated Java code. Error
B4A line: 95
Consultant.SelectedIndex=Counter
javac 1.6.0_23
src\SBS\co\uk\LegionellaSurveyor\configscreen.java:422: not a statement
_counter;
^
1 error
All I'm trying to do is after populating a spinner with the names of consultants, is set the selected item to the one that matches the one I'm looking for.
Thanks inadvance for your help