Index
2011-07-02 14:52Jerry Foote : Return from program
2011-07-02 14:55Mike Copeland : Re: Return from program
2011-07-02 15:01Jerry Foote : RE: Return from program
2011-07-02 15:13Mike Copeland : Re: Return from program
2011-07-02 15:16Michael Oke, II : Re: Return from program
2011-07-02 15:20Jerry Foote : RE: Return from program
Back to top
Return from program

Author: Jerry Foote

Posted: 2011-07-02 14:52:11   Link

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

---

_______________________________________________

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/20B1C97C92904D5093681ADF760C3421@jerryfootePC

** 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 Jerry Foote
Back to top
Re: Return from program

Author: Mike Copeland

Posted: 2011-07-02 14:55:39   Link

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/4E0F69AB.8030508@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
Back to top
RE: Return from program

Author: Jerry Foote

Posted: 2011-07-02 15:01:07   Link

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/9CEDC6828EF7427F8C9E6D34DB355314@jerryfootePC

** 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 Jerry Foote
Back to top
Re: Return from program

Author: Mike Copeland

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

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
Back to top
Re: Return from program

Author: Michael Oke, II

Posted: 2011-07-02 15:16:19   Link

But a form can still return a value. Problem is that you will have to setup

the form to allow it to do so. Doesn't sound like this is the case and, as

such, your suggestion should work fine, as long as MAILER is a FoxPro

program.

Michael Oke, II

661-349-6221

okeind@gmail.com

On Jul 2, 2011 12:13 PM, "Mike Copeland" <mlcopeland@gmail.com> wrote:

> 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/CACBEV=UaP=Xe-v5O_-FJb=nX_ZoCDrcXVCmn+5ph_oVvCgjpFg@mail.gmail.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 Michael Oke, II
Back to top
RE: Return from program

Author: Jerry Foote

Posted: 2011-07-02 15:20:38   Link

The parenthesis were what I was missing

Thanks Jerry

-----Original Message-----

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

Of Mike Copeland

Sent: Saturday, July 02, 2011 2:13 PM

To: profox@leafe.com

Subject: Re: Return from program

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/F8D1B1D152C74A0FBF9DD542949F0BEC@jerryfootePC

** 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 Jerry Foote