Need help advancing to the next record in Visual Basic -


ok attempting have form retrieve results. however, when retrieve results can retrieve next result if there 2 sets of results within file. need being able retrieve next sets of results if there more 2 sets of results in file

for c = 0 ubound(scoring) step 3         txtsearch.text = scoring(c)         txtname.text = scoring(c + 1)         txtmarks.text = scoring(c + 2)  next 

i think be:

public intposition integer ' variable has public keep position  dim bytstep byte  bytstep = 3  ' go forward if intposition <= ubound(scoring) - (bytstep - 1)     intposition = intposition + bytstep     txtsearch.text = scoring(intposition)     txtname.text = scoring(intposition + 1)     txtmarks.text = scoring(intposition + 2) end if  'go backwards if intposition >= 0     intposition = intposition - bytstep     txtsearch.text = scoring(intposition)     txtname.text = scoring(intposition + 1)     txtmarks.text = scoring(intposition + 2) end if 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -