You are here: DEVPPL Forum Programming Visual Basic Forum
NOTIFICATIONS
54.100
MEMBERS
15.693
TOPICS
62.271
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

Problem with .net for next

0

Loading

Problem with .net for next

Postby Caligula » Thu Dec 29, 2011 2:51 pm

I there i have this code


Dim desinftb As New maindatabaseDataSet.MateriaisDataTable

desinftb = maindatabaseDataSet.Materiais

Dim count As Integer

count = desinftb.Rows.Count


Dim b As Integer


For b = 0 To count


Dim asc As String

asc = MaindatabaseDataSet.Materiais.Rows(b).Item(0)
matcombo.Items.Add(asc)


Next


Me.BackColor = Color.Blue

Dim desinfta As New maindatabaseDataSet.TratamentosDataTable

desinfta = MaindatabaseDataSet.Tratamentos



Dim a As Integer




Dim counttra As Integer
counttra = desinfta.Rows.Count

For a = 0 To counttra


Dim bsc As String
bsc = MaindatabaseDataSet.Tratamentos.Rows(b).Item(0)
combotrat.Items.Add(bsc)



Next







This code allows me to get data from a table in a database and populate a combobox with it when the form loads but after the second next any code i write
the application doesn't read, like the code to puplate the second combobox. If anyone knows what the problem is, please hellp me.
Caligula
 
Reputation: 0
Posts: 15
Joined: Fri Apr 22, 2011 9:38 pm
Highscores: 0
Arcade winning challenges: 0

Problem with .net for next - Sponsored results

Sponsored results

Login to get rid of ads

 

^ Back to Top