Hello Community,
i have got this problem:
im starting a connection to a Database, that works all fine, but then do i have to put in it a Loop , because if i diddnt put it in, than do he only gets the First of the Database, and that is wrong.
now do he only grabs the First one, but i need that he gets all of the Database.
Some One a Idea?
here the Code of the Loop.
Greet UndercoverCode:Do While Not PrUpdater GetLinkId GetLinkUrl GetPreviousPR Chrlinkid = txt_linkid.Text Chrlinkurl = txt_linkurl.Text Chrpreviouspr = txt_previouspr.Text Chrnewpr = txt_newpr.Text ListView1.ListItems.Add , , Chrlinkid With ListView1.ListItems(ListView1.ListItems.Count) .SubItems(1) = Chrlinkurl .SubItems(2) = Chrpreviouspr .SubItems(3) = Chrnewpr .SubItems(4) = Chrnewpr .EnsureVisible 'scroll End With GetLinkIdNext GetLinkUrlNext GetPreviousPRNext GoTo nextone Loop If MoveNext = True Then GoTo Endone Else rs.MoveNext Endone: End if




Reply With Quote