View previous topic :: View next topic |
Author |
Message |
nightrider Beginner
Joined: 06 Dec 2005 Posts: 12 Topics: 4
|
Posted: Thu Jun 29, 2006 7:04 am Post subject: Testing if a mandatory field was changed |
|
|
How do I discover if a mandatory field (attrb=fset) of a screen was changed by the user?
(I know how to do it with a non-mandatory field.)
Greetings from Sao Paulo - Brazil
Ricardo |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Thu Jun 29, 2006 7:12 am Post subject: |
|
|
nightrider,
Check the MDT which is a Bit in the attribute byte indicating modification of field on screen.If the user keys in any data into the field, it turns the MDT ON indicating that the data is modified.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
nightrider Beginner
Joined: 06 Dec 2005 Posts: 12 Topics: 4
|
Posted: Thu Jun 29, 2006 7:16 am Post subject: |
|
|
I never treat attribute byte at bit level. May you explain a little better?
In every case, thank you in advance |
|
Back to top |
|
 |
nightrider Beginner
Joined: 06 Dec 2005 Posts: 12 Topics: 4
|
Posted: Thu Jun 29, 2006 7:18 am Post subject: |
|
|
Just in time:
We need to remember that user can press "erase eof" or "erase input" key. And, if I use attrb=fset, the field was ever send back from the screen to program when a receive is executed...
This is the reasons of my doubt about your answer. |
|
Back to top |
|
 |
|
|