Weirdness in screen program

Peter Bateman shediac92@hotmail.com
Mon, 10 May 2004 12:55:41 -0300


Mark:

I just want to confirm that the DISPLAY verb was taken out
of the EDIT procedure for t'OBJECT_CODE.

Any verb that modifies FIELDTEXT i.e. DISPLAY, ACCEPT etc,
except LET.
should not be used in an EDIT procedure because the verb
obliquely modifies the field that is  being edited.

e.g. Field X
     Field Y
     PROCEDURE EDIT Y
     DISPLAY X
Y gets the value of X regardless of what the user entered
for Y!

Sometimes, just to protect FIELDTEXT I save it in a temporary
if I am going to do sometime that would modify it.

ie LET t'FIELDTEXT = FIELDTEXT
  LET t'SIZE_FIELDTEXT = SIZE(FIELDTEXT)
; --
  DISPLAY Z
  LET FIELDTEXT=t'FIELDTEXT[1:t'SIZE_FIELDTEXT]
Regards,
Peter

_________________________________________________________________
Free yourself from those irritating pop-up ads with MSn Premium. Get 2months 
FREE*  
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines