It is currently 21 April 2025, 18:35 Advanced search

Go To Last Record

Questions and answers on how to best use Instant Developer

Go To Last Record

Postby Gaby_h » 28 August 2013, 20:21

This must be an easy one but have not been able to find an answer. What command would I need to put in a button to Go To the last record?
Thanks
Gaby_h
 
Posts: 888
Joined: 17 July 2013, 18:22
Location: Vancouver, Canada

Re: Go To Last Record

Postby asawyer13 » 28 August 2013, 22:29

Gaby,
Have you looked at MoveLast?

I am playing with it also, I am sure it's something simple, but can't get it either.
Last edited by asawyer13 on 29 August 2013, 0:02, edited 1 time in total.
asawyer13
 
Posts: 137
Joined: 10 July 2013, 9:44

Re: Go To Last Record

Postby Gaby_h » 28 August 2013, 23:06

Hi Alan.
Yes I did, but doesn't seem to be a panel method and not sure how to use it.
Gaby_h
 
Posts: 888
Joined: 17 July 2013, 18:22
Location: Vancouver, Canada

Re: Go To Last Record

Postby v.marino » 29 August 2013, 14:16

You can set the actualPosition panel property to the number of rows of the panel, obtained from the totalRows() function.

Code: Select all
int totRows = Panel.totalRows()
Panel.actualPosition = totRows
User avatar
v.marino
Pro Gamma
Pro Gamma
 
Posts: 652
Joined: 2 January 2013, 8:11

Re: Go To Last Record

Postby asawyer13 » 29 August 2013, 14:26

Thanks, that did work for me.
asawyer13
 
Posts: 137
Joined: 10 July 2013, 9:44

Re: Go To Last Record

Postby john w » 29 August 2013, 15:07

It appears to me that what is happening is this works with the row index. What I am curious about is using in.de does the row count start at 1 or 0 ? Is that true for all index or counts inside of in.de?
Regards

John W
User avatar
john w
 
Posts: 834
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: Go To Last Record

Postby Gaby_h » 29 August 2013, 15:13

It works for me too. Thanks v.marino.

John: I think it starts at 0. Same with column numbering, the first col starting from left is numbered 0.
Gaby_h
 
Posts: 888
Joined: 17 July 2013, 18:22
Location: Vancouver, Canada

Re: Go To Last Record

Postby john w » 29 August 2013, 15:18

Gaby - thanks for the information
Regards

John W
User avatar
john w
 
Posts: 834
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA


Return to Tips & Tricks

Who is online

Users browsing this forum: No registered users and 20 guests

cron