Results 1 to 4 of 4

Thread: Cursor, equivalent of found()

  1. #1
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,888

    Cursor, equivalent of found()

    Hi all,
    when I use the cursor, eg:
    Code:
    ca = cursoradapter("myVT")
    ca.setNamedParameter("pkwhere", "someValue")
    ca.setnamedparameter("defaultnamedparameters", "0")
    ca.cursorRefresh()
    How can I test records found?

    Ok, I can use:
    reccount("myVT")

    but come like:
    ca.reccount() is better..

    thanks
    Fabio

  2. #2
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,888
    PS: CursorAdapter...

  3. #3
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,031
    You Can do it this way:

    reccount( ca.alias )

    but to simplify it i have added ca.reccount() to the CursorAdaptor class.
    Last edited by barrymavin; 2018-03-13 at 00:39.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  4. #4
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,888
    Barry... the best!

    thanks
    Fabio

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us