Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2003
    Posts
    1

    Question Unanswered: search form - pleas help an absolute beginner

    hi
    i want to make a search form, without the therm "datasearch", for a little adress-database. do anybody here have an little codesnipe, or a simple example
    perhaps you can send your help to
    mueko@mueko.de
    thanks from germany
    uli

  2. #2
    Join Date
    Sep 2003
    Location
    Dallas
    Posts
    182
    method pushButton(var eventInfo Event)
    Locatepattern("Vendor Name", Searchfield.Value +"..")
    endMethod

    This is a simple method. It is case sensitive and requires that the entered string be accurate. But it is the core of a search.
    You create a textfield, this one is named Searchfield, not associated with a database field.
    Create a pushbutton.

    To the pushbutton method attach the single statement. The ".." at the end tells it to look for the text at the begining of the table field. (i.e. Smit will find Smith or Smithson). You can add statements to make the search case insensitive. you can also add a second button or create a program which toggles the button response to add a locatenext search which will continue the search if the first instance is not what you are looking for.

Posting Permissions

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