AMT Help Files

SMEX

Syntax

Command
Mandatory parameter
Optional parameter
Mandatory keyword
Optional keyword

SMEX (<Expression>[, [<2nd expression>][, <Focus field>]])

Description

Much alike the SENDMESSAGE command. Sends a message to the form. In addition to the SENDMESSAGE, SMEX automatically sets the value for the system item ERROR to true and also ends the execution of the current routine.

Diagram

Returned value type

None

Parameters

Parameter Description
<Expression> Expression that returns the alpha or numeric value to be used as (the first part of the) message text.
<2nd expression> Expression that returns the alpha or numeric value to be used as the 2nd part of the message text.
<Focus field> Field that must be given the focus.

Remarks

It is possible to specify the focus field to be selected at the end of the execution of this command.


Overview of some properties of sme, smex, exit, refresh and sme + error.

SME SMEX EXIT REFRESH() SME + ERROR
System item error Not changed Set to true Not changed Set to true Already true
Ends current routine No Yes Yes No No
Repaints screen No No  No Yes No
Perform display main Yes No Yes No No


Example


smex ('Invalid value:''the date must be specified in the format DD-MM-YYYY'edit_date)

 

Return to

Commands