Difference between revisions of "SET PREFORM"

From Recital Documentation Wiki
Jump to: navigation, search
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=SET PREFORM=
 
 
 
==Class==
 
Screen Forms
 
 
 
 
==Purpose==
 
==Purpose==
 
Preform trigger procedure to execute before a form is displayed
 
Preform trigger procedure to execute before a form is displayed
Line 11: Line 4:
  
 
==Syntax==
 
==Syntax==
SET PREFORM TO [<procedure-name> | (<expC>)]
+
SET PREFORM TO [<procedure-name> | (<expC>)]
  
  
 
==See Also==
 
==See Also==
[[@...GET]], [[CREATE SCREEN]], [[MODIFY SCREEN]], [[SET POSTFORM]], [[SET POSTRECORD]], [[SET PRERECORD]]  
+
[[@...GET]], [[APPEND]], [[CHANGE]], [[CREATE SCREEN]], [[EDIT]], [[FMT()]], [[Function Keys]], [[INSERT]], [[MODIFY SCREEN]], [[QUERY]], [[SET FORMAT]], [[SET POSTFORM]], [[SET POSTRECORD]], [[SET PRERECORD]]  
 +
 
  
 
==Description==
 
==Description==
Line 26: Line 20:
 
<code lang="recital">
 
<code lang="recital">
 
procedure intiform
 
procedure intiform
// Display the contents on a memo
+
  // Display the contents on a memo
memosay(comp_hist,2,17,15,61)
+
  memosay(comp_hist,2,17,15,61)
 
return
 
return
  
Line 34: Line 28:
 
set form to formname
 
set form to formname
 
set preform to initform
 
set preform to initform
edit</code>
+
edit
 +
</code>
  
  
 
==Products==
 
==Products==
Recital Mirage Server, Recital Terminal Developer
+
Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Set_Commands|PREFORM]]
 
[[Category:Set_Commands|PREFORM]]
 +
[[Category:Screen Forms]]
 +
[[Category:Screen Forms Set Commands]]
 +
[[Category:Triggers]]
 +
[[Category:Triggers Set Commands]]

Latest revision as of 17:18, 23 November 2009

Purpose

Preform trigger procedure to execute before a form is displayed


Syntax

SET PREFORM TO [<procedure-name> | (<expC>)]


See Also

@...GET, APPEND, CHANGE, CREATE SCREEN, EDIT, FMT(), Function Keys, INSERT, MODIFY SCREEN, QUERY, SET FORMAT, SET POSTFORM, SET POSTRECORD, SET PRERECORD


Description

The PREFORM trigger procedure executes a procedure upon entering a form. The SET PREFORM TO <procedure-name> command defines the procedure or program name to be executed. The filename can be substituted with a <expC>, enclosed in round brackets, which returns a valid filename. The SET PREFORM TO command clears the active <procedure-name>.

The SET PREFORM trigger can also be defined from within the SCREEN PAINTER work surface. The PREFORM procedure option from the TRIGGERS menu is used to define the trigger name. The [HELP] key may be pressed here to edit the trigger file from inside the SCREEN PAINTER.


Example

procedure intiform
  // Display the contents on a memo
  memosay(comp_hist,2,17,15,61)
return
 
select 1
use payroll alias payroll
set form to formname
set preform to initform
edit


Products

Recital