Difference between revisions of "EDITFIELD()"

From Recital Documentation Wiki
Jump to: navigation, search
 
(Class)
Line 1: Line 1:
==Class==
 
Screen Forms
 
  
  

Revision as of 15:05, 27 October 2009


Purpose

Function to return or alter the current EDITFIELD setting


Syntax

EDITFIELD([<expL>])


See Also

APPEND, CHANGE, CREATE SCREEN, DB_FOXPLUSBUGS, DB_FOXPROKEYS, DB_SAMBA, EDIT, FILETYPE(), FMT(), INDEXEXT(), MODIFY SCREEN, READEXIT(), READINSERT(), SET CLIPPER, SET CLIPPER5, SET COMPATIBLE, SET EDITFIELD, SET FILECASE, SET FILETYPE, SET FORMAT, SET INDEXEXT, SET MEMOEXT, SET PCEDIT, SET PCEXACT, SET PCFILTER, SET PCGRAPHICS, SET PCKEYS, SET PCLOCKING, SET PCPICTURE, SET PCSAYS, SET PCUNIQUE


Description

The EDITFIELD() function returns .T. if EDITFIELD is ON and .F. if EDITFIELD is OFF. If EDITFIELD is ON, when the user partially overwrites a field the entire field value is saved when the [RETURN] key is pressed, not just the user's input. When EDITFIELD is OFF, the default, the contents of the field up to the current cursor position are saved.

The EDITFIELD setting can be altered using the SET EDITFIELD ON | OFF command, or by using the optional <expL> in the EDITFIELD() function. The <expL> logical expression will SET EDITFIELD ON if .T. and SET EDITFIELD OFF if .F..


Example

lEditfield = editfield()
set editfield on
edit
editfield(lEditfield)


Products

Recital Terminal Developer