Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send Message to Novell User
Message
De
19/09/2003 16:53:09
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00830092
Message ID:
00830779
Vues:
17
>Not sure if this helps. The example below checks for return codes, and based on the values, sends messages to various end users.
>
>*-- Check to see if directories and log file exist and return appropriate return code.
>DO CASE
> CASE THISFORM.ErrorCode = "1"
> RUN send "Error Message" John Jim Sarah
>
> CASE THISFORM.ErrorCode = "2"
> RUN send "some other error message." John Jim Sarah Jill
>
> CASE THISFORM.ErrorCode = "3"
> RUN send "FTP Error: Prefer log file is not found. Check;
> FileMover program" Frank Tony Cavan David Mary
> THISFORM.cmdPause.Click
>ENDCASE


__________________________________________________________________

Actually, what I was doing this for... I have an internal, business related, user only email system within my program. Some employees do not go into the program at all or very rarely, so I wanted to notify them via novell. actually I used the command something like this when it is selected what user to send an email to:

...
curruser = password.novellogin

if password.notifyemail = 'Y'
RUN /N7 v:\public\SEND "An email was sent to you" &curruser
endif
...

This works well as the 7 runs it minimized and all. Thanks

I thought about running this before, but figured the dos box would look bad, didn't know ya could run it minimized until I tried it out and played with it, also wasn't sure if i could send the value of a field to the command, but all worked fine.
``` Appreciate a normal day, it is always better than a bad one ```

Kev
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform