Results 1 to 2 of 2

Thread: DBList Question

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Edgerton, WI
    Posts
    381
    I have a DBList control 9dbListType)on one of my forms that displays to contents of a field in my database. The DBlist control is connected to a data control (datType). The capyion of the Data Control displays the current record.

    As I step through the list using the data control everything works fine. However, if I click on an item in the list I would like the data control to move to that record. For instance, if the data control is currently at record 10 of 100, the 10th record is hilighted in the list control. However, if I now click on record 15 in the list control, although it now becomes hilighted, the data control remains at record 10. How can I get the record to reflect whatever record I click on in the DBList as well?

    The problem is if I cycle through the list with the data control and delete a record it will delete the current record. However, it I move to record 15 in the DBList and the data control is still on record 10, then record 10 will be deleted, instead of the desired record 15 as hilighted in the dblist.

    Sometimes it's easier to scroll through the list and select the record than it is to cycle through them with the data control.

    Any help here would be most appreciated.

    Rev. Michael L. Burns

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    One Way:
    In the click or dblclick of the list add the code to findfirst using your list.text as the field to find.
    On finding it you will be positioned accordingly.

    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width