<OBJECT>.FINDBY_DEFINEDKEY()

Syntax

<OBJECT>.FINDBY_DEFINEDKEY( [ Title as C [, Prompt as C [, Type as N [, Expression as C [, Modeless as L [, Image_Name as C ]]]]]] )

Argument

Description

Title

Optional. Default = "Find by Key". The title of the dialog box.

Prompt

Optional. Default = "Search for ". The prompt to appear next to the type-in field

Type

Optional. Default = 1

  • 1 = The Expression argument is an index name.

  • 2 = The Expression argument is an expression.

Expression

Optional. Default = "". The tag name of an index or an Xbasic expression that selects records.

Modeless

Optional. Default = .T.

  • .T. = The dialog box is not modal.

  • .F. = The dialog box is modal.

Image_Name

Optional. Default = "$a5_find_by_key". The name of the function to call.

Description

The <OBJECT>.FINDBY_DEFINEDKEY() method applies to:

The <OBJECT>.FINDBY_DEFINEDKEY() method is a high level approach to displaying the Find by Key dialog box that allows you to customize its appearance and preset its filter.

Supported By

Alpha Five Version 5 and Above

Limitations

Desktop applications only.

Example

dim ptr as P

ptr = form.load("Customer Information")

ptr.show()

ptr.FindBy_DefinedKey()