I'm using a REALdatabase, so all the Move methods should work. But even MoveNext doesn't work, which works on all database types. All I want to do is change the current record using a ListBox and have the EditFields display the data for that record. I didn't think it would be this hard :(

Ben Farhner
farhnware
http://farhnware.homelinux.com

On Feb 25, 2006, at 5:39 PM, realbasic-nug- [EMAIL PROTECTED] wrote:

Am 25.02.2006 um 23:29 schrieb Ben Farhner:

I have a ListBox that lists all the rows in a database table, and
several EditFields that display information for the current record
and can be used to add a new record. Adding a new record works
fine, and the ListBox updates, but the EditFields don't update
their information when I click on a row in the ListBox. Here's the
code I have in the ListBox's Change event:

  if me.listIndex>-1 then
    pdata.moveto me.listindex
  end

pdata is a DataControl, and the EditFields are bound to it. I've
tried several things, even pdata.moveFirst, which doesn't work
either! What am I missing? Thanks,

If I remember correctly, not all DBs support MoveTo... Some
only support sequential forward scrolling through your cursor.

Might this be the problem?

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to