PREVIEW_BROWSE()

Syntax

PREVIEW_BROWSE( Browse_Name as C [, Filter_Expression as C [, Order_Expression as C [, Modal as L [, Session_Modal as L ]]]] )

Argument

Description

Browse_Name

The name of a saved browse.

Filter_Expression

Optional. Default = ".T." (All records).

A character filter expression that evaluates to a logical value and selects records from the table.

Order_Expression

Optional. Default = record order.

A character order expression that sorts selected records.

Modal

Optional. Default = .F.

  • .T. (TRUE) = The Print Preview window opens as a modal dialog box. This means that the user must first close the Print Preview window before he can move to another window in Alpha Five.

  • .F. (FALSE) = The user does not have to close the Print Preview window before he can move to another window in Alpha Five.

Session_Modal

Optional. Default = .T.

  • .T. (TRUE) = Any script that calls the PREVIEW_BROWSE() function will pause until the Print Preview window is closed. However, the Print Preview window itself is not a modal dialog box. The user is free to select other windows in Alpha Five.

  • .F. (FALSE) = The script will not pause until the Print Preview is closed.

Description

PREVIEW_BROWSE() creates the selected browse and then displays a preview of the browse.

Supported By

Alpha Five Version 5 and Above

Limitations

Desktop applications only.

Example

preview_browse("Invoice", "Invoice_Number > " + quote("000001"), "Date", .T., .T.)

See Also

Print Functions, Browse Functions and Methods