Progress
ADM 2 Reference


applyEntry (smart.p)

Applies ENTRY to the first enabled and visible object in the default frame (unless pcField is specified) or in the first child that is a Frame.

Parameters:

INPUT pcField AS CHARACTER

An optional field name; if specified (that is, if this parameter is not blank or unknown), the frame field of that name is positioned to.

Returns: Nothing (procedure)

Notes: None

Examples:

/* This example will move focus to the first enabled and visible field in 
   the SmartDataViewer vCust. The handle hvCust would normally be 
   available in the SmartDataViewer’s container. This statement could 
   follow a message indicating that values needed to be entered for the 
   current record, for example.*/ 
RUN applyEntry IN hvCust (?). 
/* This example applied focus to a specific field ("City") in a 
   SmartDataViewer. This could result from field validation failing for 
   field, for example. See updateRecord in the super procedure 
   datavis.p for an actual example of how the ADM repositions focus to a 
   specific field.*/ 
RUN applyEntry In hvCust ("City":U). 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095