15 pts.
 Error message coding
how to do the coding to check the data (email address)that the first char must contain @ by using movel? for example: if user key in abc.yahoo.com error massage will show but if user key in @yahoo.com the data is correct.

Software/Hardware used:
ASKED: August 14, 2008  7:15 AM
UPDATED: August 14, 2008  3:57 PM

Answer Wiki:
is there a specific reason why you want to use Movel for this, you can do it that way but it is more complex to code than a simple substring check if %substr(string,1,1) = '@'.......
Last Wiki Answer Submitted:  August 14, 2008  2:30 pm  by  Teckgeck   170 pts.
All Answer Wiki Contributors:  Teckgeck   170 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

If you have to use movel, (and you shouldn’t have to), then do a movel to a 1 character field and check it for the @ sign.

movel ‘@yahoo’ 1char
if 1char = ‘@’
– do something

 10 pts.