Xbasic

A5.TRANSACTION_COUNTER Function

Syntax

Transaction_Count as N = A5.Transaction_Counter([C options])

Arguments

optionsCharacter

The name of the object(s) to track. See Object Types for possible values.

Description

The xbA5.TRANSACTION_COUNTER() method fires an event every time an Alpha Anywhere window opens or closes. It returns the event transaction count for the specified objects. If no objects are specified, xbA5.TRANSACTION_COUNTER() counts the event for all object types.

Example

Xdialog forms use xbA5.TRANSACTION_COUNTER() for the window bar. The Xdialog that displays the window bar includes the following code, which calls the redraw_bar event every time an Alpha Anywhere window opens or closes.

{watch=a5.transaction_counter()!redraw_bar}

Limitations

Desktop applications only.

See Also