[BR_forum] &= operator

General development discussion.

Moderators: Susan Smith, admin, Gabriel

Gabriel
Posts: 412
Joined: Sun Aug 10, 2008 7:37 am
Location: Arlington, TX
Contact:

[BR_forum] &= operator

Post by Gabriel »

Nice.

On Fri, Sep 26, 2008 at 11:15 AM, John Bowman <gothnerd@gmail.com> wrote:
Inf= 1E+307

it's a little known BR constant for the largest possible number


-----Original Message-----
From: br_forum-bounces@maillist.ads.net
[mailto:br_forum-bounces@maillist.ads.net] On Behalf Of Gabriel Bakker
Sent: Friday, September 26, 2008 12:08 PM
To: Business Rules Forum
Subject: Re: [BR_forum] &= operator

Hey, thats interesting. Whats "inf"?

2008/9/26 George Tisdale <GTISDALE@tisdalecpa.com>:
try

let a$="abcdefg"
print a$
let a$(inf:inf)="123456"
print a$

no need to know the length of the string$


George L. Tisdale, CPA
Tisdale CPA
75 Junction Square Drive
Concord, MA 01742
(978) 369-5585

IRS Circular 230 Notice: "To ensure compliance with requirements
imposed by the IRS, we inform you that any U.S. tax advice contained
in this communication (including any attachments) is not intended or
written to be used, and cannot be used, for the purpose of (i)
avoiding penalties under the Internal Revenue Code or (ii) promoting,
marketing or recommending to another party any transaction or matter addressed
herein."
This electronic message transmission contains information which is
intended only for the use of the individual or entity to which it is
addressed and may contain information that is privileged, confidential
and exempt from disclosure under applicable law. If the reader of this
message is not the intended recipient, you are hereby notified that
any dissemination or distribution of this communication to other than
the intended recipient is strictly prohibited. If you have received
this communication in error, please notify us immediately by calling
(978) 369-5585 or by electronic mail
(gtisdale@tisdalecpa.com) Thank you.



________________________________
From: br_forum-bounces@maillist.ads.net
[mailto:br_forum-bounces@maillist.ads.net] On Behalf Of Mikhail
Zheleznov
Sent: 09/26/2008 11:13 AM
To: Business Rules Forum
Subject: Re: [BR_forum] &= operator

By the way, George, cool way to insert into the middle!

2008/9/26 Mikhail Zheleznov <zheleznovster@gmail.com>
a$(1:0) looks great for appending to the front of the string!

For appending to the end, a$(1000:99999) looks great if you know the
length of the string is not more than 1000. But if you don't know,
then you looks like you have to do this:


let pastendofstring = len ( mystring$ ) + 1

let newendofstring = pastendofstring + len ( texttoappend$ )

let mystring$ ( pastendofstring : newendofstring ) = tetxtoappend$


Which brings me back to the original wish to have the &= operator.
_______________________________________________
BR_forum mailing list
BR_forum@maillist.ads.net
http://maillist.ads.net/mailman/listinfo/br_forum

_______________________________________________
BR_forum mailing list
BR_forum@maillist.ads.net
http://maillist.ads.net/mailman/listinfo/br_forum

_______________________________________________
BR_forum mailing list
BR_forum@maillist.ads.net
http://maillist.ads.net/mailman/listinfo/br_forum
_______________________________________________
BR_forum mailing list
BR_forum@maillist.ads.net
http://maillist.ads.net/mailman/listinfo/br_forum

Post generated using Mail2Forum (http://www.mail2forum.com)
zheleznovster at gmail...

[BR_forum] &= operator

Post by zheleznovster at gmail... »

Thanks, that's enlightening! It does what I need.

2008/9/26 Gabriel Bakker <gabriel.bakker@gmail.com (gabriel.bakker@gmail.com)>
Nice.


On Fri, Sep 26, 2008 at 11:15 AM, John Bowman <gothnerd@gmail.com (gothnerd@gmail.com)> wrote:
Inf= 1E+307

it's a little known BR constant for the largest possible number


-----Original Message-----
From: br_forum-bounces@maillist.ads.net (br_forum-bounces@maillist.ads.net)
[mailto:br_forum-bounces@maillist.ads.net (br_forum-bounces@maillist.ads.net)] On Behalf Of Gabriel Bakker
Sent: Friday, September 26, 2008 12:08 PM
To: Business Rules Forum
Subject: Re: [BR_forum] &= operator

Hey, thats interesting. Whats "inf"?

2008/9/26 George Tisdale <GTISDALE@tisdalecpa.com (GTISDALE@tisdalecpa.com)>:
try

let a$="abcdefg"
print a$
let a$(inf:inf)="123456"
print a$

no need to know the length of the string$


George L. Tisdale, CPA
Tisdale CPA
75 Junction Square Drive
Concord, MA 01742
(978) 369-5585

IRS Circular 230 Notice: "To ensure compliance with requirements
imposed by the IRS, we inform you that any U.S. tax advice contained
in this communication (including any attachments) is not intended or
written to be used, and cannot be used, for the purpose of (i)
avoiding penalties under the Internal Revenue Code or (ii) promoting,
marketing or recommending to another party any transaction or matter addressed
herein."
This electronic message transmission contains information which is
intended only for the use of the individual or entity to which it is
addressed and may contain information that is privileged, confidential
and exempt from disclosure under applicable law. If the reader of this
message is not the intended recipient, you are hereby notified that
any dissemination or distribution of this communication to other than
the intended recipient is strictly prohibited. If you have received
this communication in error, please notify us immediately by calling
(978) 369-5585 or by electronic mail
(gtisdale@tisdalecpa.com (gtisdale@tisdalecpa.com)) Thank you.



________________________________
From: br_forum-bounces@maillist.ads.net (br_forum-bounces@maillist.ads.net)
[mailto:br_forum-bounces@maillist.ads.net (br_forum-bounces@maillist.ads.net)] On Behalf Of Mikhail
Zheleznov
Sent: 09/26/2008 11:13 AM
To: Business Rules Forum
Subject: Re: [BR_forum] &= operator

By the way, George, cool way to insert into the middle!

2008/9/26 Mikhail Zheleznov <zheleznovster@gmail.com (zheleznovster@gmail.com)> _______________________________________________
BR_forum mailing list
BR_forum@maillist.ads.net (BR_forum@maillist.ads.net)
http://maillist.ads.net/mailman/listinfo/br_forum

_______________________________________________
BR_forum mailing list
BR_forum@maillist.ads.net (BR_forum@maillist.ads.net)
http://maillist.ads.net/mailman/listinfo/br_forum

_______________________________________________
BR_forum mailing list
BR_forum@maillist.ads.net (BR_forum@maillist.ads.net)
http://maillist.ads.net/mailman/listinfo/br_forum
_______________________________________________
BR_forum mailing list
BR_forum@maillist.ads.net (BR_forum@maillist.ads.net)
http://maillist.ads.net/mailman/listinfo/br_forum

Post generated using Mail2Forum (http://www.mail2forum.com)
Post Reply