Re: Return from program

Author: Mike Copeland

Posted: 2011-07-02 at 15:13:12

Sorry, didn't look at what you wrote...

In MAILER, find whatever line of code is the very last in whatever

processes it performs, then add

return value-to-return

For example, if you want to return success, you could put

return .t.

or

return 1

or

return 'success'

Then, in the calling program where you now have "do mailer with ...."

change it to

llReturn = MAILER(SNDLIST.TOEMAIL)

Of course, that won't work if MAILER is a form.

Mike

> Mailer is the calling program and it return value

> Mailer is called from start.

> How do I get returned value in start

> Jerry

>

> -----Original Message-----

> From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

> Of Mike Copeland

> Sent: Saturday, July 02, 2011 1:56 PM

> To: profox@leafe.com

> Subject: Re: Return from program

>

> The last line in your SNDLIST program should be

> return valuetoreturn

> where valuetoreturn is the value you want to return

>

> Mike

>

>> How do I get a return value from a program

>>

>>

>>

>> Example

>>

>>

>>

>> DO MAILER WITH SNDLIST.TOEMAIL,;

>>

>> SNDLIST.NAME

>>

>>

>>

>> If the email was sent I need to know, the program will return a .t. if

>> successful, .f. if it fails

>>

>>

>>

>> Thanks jerry

>>

>>

>>

>> --- StripMime Report -- processed MIME parts ---

>> multipart/alternative

>> text/plain (text body -- kept)

>> text/html

>> ---

>>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4E0F6DC8.6010705@ggisoft.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Mike Copeland