I have code that dumps data from a database into a class with a public array called Record, ie
Ticket.Record(X).ID = "1"
Ticket.Record(X).Subject = "Subject"
In this example I have 8 records in the class of Ticket.Record. What I am wanting to do is display 5 records at a time and when I hit the Next button, display the next few records in the set. The problem I am running into the the code that knows to display the first 5 then the next 3 then back again. Or if there are multiple "pages" of records.
I've tried numerous approaches but have been unable to create anything solid. Any suggestions?
Ticket.Record(X).ID = "1"
Ticket.Record(X).Subject = "Subject"
In this example I have 8 records in the class of Ticket.Record. What I am wanting to do is display 5 records at a time and when I hit the Next button, display the next few records in the set. The problem I am running into the the code that knows to display the first 5 then the next 3 then back again. Or if there are multiple "pages" of records.
I've tried numerous approaches but have been unable to create anything solid. Any suggestions?