Index
2012-02-02 20:38Sytze de Boer : Its Friday
2012-02-02 20:55Joel N. Fischoff : Re: Its Friday
2012-02-02 21:13Sytze de Boer : Re: Its Friday
2012-02-02 21:35Joel N. Fischoff : Re: Its Friday
2012-02-02 21:46Sytze de Boer : Re: Its Friday
2012-02-02 22:56Joel N. Fischoff : Re: Its Friday
2012-02-02 23:34Sytze de Boer : Re: Its Friday
2012-04-13 17:34Michael Savage : I know its Friday, but I need your assistance...
2012-04-13 17:39M Jarvis : Re: I know its Friday, but I need your assistance...
2012-04-13 17:46Sytze de Boer : Re: I know its Friday, but I need your assistance...
Back to top
Its Friday

Author: Sytze de Boer

Posted: 2012-02-02 20:38:03   Link

Brain fade day again

sele clients

go top

** about 100 clients

lcEmails=''

scan

lcEmails=lcEmails+alltrim(email)+","

** at some point I need to interrupt the process and email these people

(i.e. bulk email)

** otherwise I end up at the end with string too long to fit

** how to avoid this ?

endscan

--

Regards

Sytze de Boer

--- 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/CAG1nNy_HTEi1OG_6=nMWBdxZ5JG+nLpOHs8pTW3fTC+TV6aEww@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.

©2012 Sytze de Boer
Back to top
Re: Its Friday

Author: Joel N. Fischoff

Posted: 2012-02-02 20:55:45   Link

I’d probably do it something like this:

lcEmails = ""

Select Clients

Go Top

Scan

lcEmails = lcEmails + Alltrim (email)

If Len (lcEmails) > 150

SendBulkEmail (lcEmails)

lcEmails = ""

Else

lcEmails = lcEmails + Iif (!Eof(), ",", "")

Endif

Endscan

SendBulkEmail (lcEmails)

-----------------------

Basically, send the E-mails in spurts. Unless there's some reason not to,

it's probably better that way anyway - some E-mail services can get cranky

if you send the same E-mail to a lot of people at once.

Joel

_______________________________________________

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/98097B644D044E3C8167C29C99683C4B@ASUS1

** 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.

©2012 Joel N. Fischoff
Back to top
Re: Its Friday

Author: Sytze de Boer

Posted: 2012-02-02 21:13:49   Link

Ji Joel

This is what I do at the moment

Problem is, that means you're only sending 3 or 4 at a time

S

On Fri, Feb 3, 2012 at 2:55 PM, Joel N. Fischoff <petrukio@rcn.com> wrote:

> I’d probably do it something like this:

>

> lcEmails = ""

>

> Select Clients

> Go Top

> Scan

> lcEmails = lcEmails + Alltrim (email)

>

> If Len (lcEmails) > 150

> SendBulkEmail (lcEmails)

> lcEmails = ""

> Else

> lcEmails = lcEmails + Iif (!Eof(), ",", "")

> Endif

> Endscan

>

> SendBulkEmail (lcEmails)

>

>

> -----------------------

>

> Basically, send the E-mails in spurts. Unless there's some reason not to,

> it's probably better that way anyway - some E-mail services can get cranky

> if you send the same E-mail to a lot of people at once.

>

>

> Joel

>

>

[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/CAG1nNy9phW7z+j1pn6RO=nxQ7e3i1zA+FAWHOhi=Yfrg2Ksgeg@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.

©2012 Sytze de Boer
Back to top
Re: Its Friday

Author: Joel N. Fischoff

Posted: 2012-02-02 21:35:34   Link

>Problem is, that means you're only sending 3 or 4 at a time

I suppose you could load the addresses into an array instead. Or you could

create a free table with a single memo field, dump all of the E-mail

addresses into that, use that memo field to supply the address part of the

E-mail, and then delete the free table. I guess it really depends on how

you're creating the E-mail message itself.

Joel

_______________________________________________

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/89863542A8134D9C82AF84106DD5DDCB@ASUS1

** 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.

©2012 Joel N. Fischoff
Back to top
Re: Its Friday

Author: Sytze de Boer

Posted: 2012-02-02 21:46:25   Link

Good idea

But i think it'll crap out on final system which goes

blatdoit="'trblat.txt"

blatdoit=blatdoit+" -t "+Lower(Alltrim(lcEmails))

blatdoit=blatdoit+" -s "+'"'+ALLTRIM(lcSubject)+'"'

blatdoit=blatdoit+" -f "+ALLTRIM(lcBody)

blatdoit=blatdoit+" -server "+ALLTRIM(lcSmtp)

blatdoit=blatdoit+" -log blat.log"

blatdoit=blatdoit+" -try 1"

IF !EMPTY(lcAttachment)

   IF FILE("&lcAttachment")

      blatdoit=blatdoit+" -attach "+lcAttachment+"'"

   endif

ENDIF

IF !RIGHT(alltrim(blatdoit),1)="'"

   blatdoit=blatdoit+"'"

endif

Local lcDll, lcCmd, lnResult

lcDll = "blat.dll"

Declare Integer Send In (lcDll) String blatstring

lcCmd = &blatdoit

lnResult = Send(lcCmd)

i.e. string too long to fit again

On Fri, Feb 3, 2012 at 3:35 PM, Joel N. Fischoff <petrukio@rcn.com> wrote:

>

> >Problem is, that means you're only sending 3 or 4 at a time

>

> I suppose you could load the addresses into an array instead.  Or you could

> create a free table with a single memo field, dump all of the E-mail

> addresses into that, use that memo field to supply the address part of the

> E-mail, and then delete the free table.  I guess it really depends on how

> you're creating the E-mail message itself.

>

>

> Joel

>

>

[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/CAG1nNy9eXmrxKGt85a9wo6NRLaWrVkAYMtw517WMHuM2oAjOWw@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.

©2012 Sytze de Boer
Back to top
Re: Its Friday

Author: Joel N. Fischoff

Posted: 2012-02-02 22:56:49   Link

>lcCmd = &blatdoit

>lnResult = Send(lcCmd)

>i.e. string too long to fit again

Hm. Well, upon looking, character fields have a limit of 254 characters,

but macro substitutions should be more like 8,192. Granted, I haven't

played with macro substitution lately, but have you tried doing this

directly and see if it helps? In other words, like this:

InResult = Send (&blatdoit)

Though, doesn't it error out before it even gets here?

Actually, I'm not sure I'm understanding what the reason for the macro

substitution is at all? I've never used blat at all, but couldn't you just

send it as something like:

InResult = Send("trblat.txt -t" + Lower(Alltrim(lcEmails)) + blatdoit)

Where blatdoit has everything after the addressing (i.e. yank off the first

two lines and leave the rest as is)?

Joel

_______________________________________________

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/B91E98648367440E90C6162E457E7C32@ASUS1

** 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.

©2012 Joel N. Fischoff
Back to top
Re: Its Friday

Author: Sytze de Boer

Posted: 2012-02-02 23:34:51   Link

I think this is smart thinking. I will try it.

S

On Fri, Feb 3, 2012 at 4:56 PM, Joel N. Fischoff <petrukio@rcn.com> wrote:

>>lcCmd = &blatdoit

>>lnResult = Send(lcCmd)

>>i.e. string too long to fit again

>

> Hm.  Well, upon looking, character fields have a limit of 254 characters,

> but macro substitutions should be more like 8,192.  Granted, I haven't

> played with macro substitution lately, but have you tried doing this

> directly and see if it helps?  In other words, like this:

>

> InResult = Send (&blatdoit)

>

> Though, doesn't it error out before it even gets here?

>

> Actually, I'm not sure I'm understanding what the reason for the macro

> substitution is at all?  I've never used blat at all, but couldn't you just

> send it as something like:

>

> InResult = Send("trblat.txt -t" + Lower(Alltrim(lcEmails)) + blatdoit)

>

> Where blatdoit has everything after the addressing (i.e. yank off the first

> two lines and leave the rest as is)?

>

>

> Joel

>

>

[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/CAG1nNy8PAJTqkYNHr_4MvKubm7cwPTQs19vC1heNofte6u3L6w@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.

©2012 Sytze de Boer
Back to top
I know its Friday, but I need your assistance...

Author: Michael Savage

Posted: 2012-04-13 17:34:55   Link

After setting a filter, how do I determine the number of records that

meet the condition

I have a table that has 60 records. I have a field called active which

is logical

If let say 45 records are true, and I set the filter to active=.t. How

do I know how many records would be available (45 in this example)

"My mind is going, I can feel it" "Would you like to hear a song..."

"Yes Hal"

Mike

_______________________________________________

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/4F88AA0F.7010908@golden.net

** 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.

©2012 Michael Savage
Back to top
Re: I know its Friday, but I need your assistance...

Author: M Jarvis

Posted: 2012-04-13 17:39:27   Link

On Fri, Apr 13, 2012 at 3:34 PM, Michael Savage <msavage@golden.net> wrote:

> After setting a filter, how do I determine the number of records that

> meet the condition

> I have a table that has 60 records. I have a field called active which

> is logical

> If let say 45 records are true, and I set the filter to active=.t. How

> do I know how many records would be available (45 in this example)

count to lnFilteredRecordCount

or

count

lnFilteredRecordCount = _TALLY

or

SELECT COUNT(*) as lnFilteredRecordCount from MyTable where active = .t.

or

...

--

Matt Jarvis

Eugene, Oregon USA

_______________________________________________

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/CAPT54rbPAty2b_bTqR+LyQ06ZjaF4dczh6UHKLcgU_WHxRL4=g@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.

©2012 M Jarvis
Back to top
Re: I know its Friday, but I need your assistance...

Author: Sytze de Boer

Posted: 2012-04-13 17:46:56   Link

I know you'll think I'm being a smartass

count to lcA for active

On Sat, Apr 14, 2012 at 10:34 AM, Michael Savage <msavage@golden.net> wrote:

> After setting a filter, how do I determine the number of records that

> meet the condition

> I have a table that has 60 records. I have a field called active which

> is logical

> If let say 45 records are true, and I set the filter to active=.t. How

> do I know how many records would be available (45 in this example)

>

> "My mind is going, I can feel it" "Would you like to hear a song..."

> "Yes Hal"

>

> Mike

>

[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/CAG1nNy_875hb1gofgLGqSQL8jcHjXhEScT35UrQ59x5tRL1u4g@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.

©2012 Sytze de Boer