Subject Re: ROWSET METHOD
From Mervyn Bick <invalid@invalid.invalid>
Date Sun, 14 Jan 2018 15:25:50 +0200
Newsgroups dbase.getting-started

On 2018-01-14 1:23 PM, Mustansir Ghor wrote:
> Dear All
>
> with an active consider following statements
>
> with (mq1.rowset)
>   left = 10
>   top = 10
> endwith
>
> If I need to include first() method with above group, how to do it.
>
> Best Regards
> Mustansir
>

A query will open with the rowpointer on the first record anyway but it
you want to make quite sure create an onOpen event handler for the query.


     function QUERY1_onOPen
        this.rowset.first()
        return

Alternatively assign a codebock as the event handler in your constructor
code.

  with (mq1.rowset)
    left = 10
    top = 10
    onOpen := {||this.rowset.first()}
  endwith


Mervyn.