Error message coding

15 pts.
Tags:
MOVEL
RPG
RPGLE
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.

Answer Wiki

Thanks. We'll let you know when a new response is added.

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) = ‘@’…….

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Drootes
    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 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: