Difference between revisions of "SET FIELDVAL"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 15: Line 15:
  
 
==See Also==
 
==See Also==
@...GET, SET VALIDATE
+
[[@...GET]], [[SET VALIDATE]]
  
  
Line 41: Line 41:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
[[Category:Set_Commands]]
+
[[Category:Set_Commands|FIELDVAL]]

Revision as of 13:46, 11 March 2009

SET FIELDVAL

Class

Screen Forms


Purpose

Specify the value to be entered in a field on a form


Syntax

SET FIELDVAL TO <expC>


See Also

@...GET, SET VALIDATE


Description

The SET FIELDVAL TO <expC> command allows modification of a field value that is being validated from data entered into a form. This command should be used in conjunction with the @…GET VALIDATE WITH command. If the VALIDATE WITH option is used on non-character variables, SET FIELDVAL TO can still be used, because the <expC> is automatically converted to the data type of the calling variable.


Example

procedure check_event
parameters data
if data = " "
set fieldval to "BALLET"
endif
set validate on
return

@10,0 say "Event ";
get event validate with check_event
read


Products

Recital Mirage Server, Recital Terminal Developer