RTC Forums
November 24, 2024, 10:32:50 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Login
Register
RTC Forums
>
Subscription
>
Support
>
Move to data set record
Pages: [
1
]
« previous
next »
Print
Author
Topic: Move to data set record (Read 4334 times)
classic12
Guest
Move to data set record
«
on:
November 22, 2011, 11:35:41 PM »
iOS app
I can use a next / prev button to step through the data set And get the populated strong grid's index to follow. I now need to do the reverse.
I have a string grid that populates with data from mydataset
I am trying to set the row index on the data set to match the selected index in the string grid. Ie as the grid scrolls or a row is selected in the string grid all the data in the edits are moved accordingly.
Logged
D.Tkalcec (RTC)
Administrator
Posts: 1881
Re: Move to data set record
«
Reply #1 on:
November 23, 2011, 12:03:18 AM »
I'm not entirely sure what you mean, but if you are asking how to move directly to a specific row inside a TRtcDataSet without using First/Prior/Next/Last, the answer is to use the "Row" property (zero-indexed, just like RTC arrays, so the first row is actually 0 and not 1).
To check the current row number in a TRtcDatSet, simply read its "Row" property (first record is on Row=0, last record is on Row=RecordCount-1).
To move to a specific row number in a TRtcDataSet, set the its "Row" property to the record number (also using 0 as the first record and so forth).
Best Regards,
Danijel Tkalcec
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Dashboard
-----------------------------
=> General
=> 3rd-Party
=> Quick Start
-----------------------------
Subscription
-----------------------------
=> Support
Loading...