[BR_forum] &= operator
Moderators: Susan Smith, admin, Gabriel
[BR_forum] &= operator
The += opertaor is nice, so you can say
let total += itemprice
instead of
let total = total + price
It would be even nicer if we had a &= operator for strings for appending
Post generated using Mail2Forum (http://www.mail2forum.com)
let total += itemprice
instead of
let total = total + price
It would be even nicer if we had a &= operator for strings for appending
Post generated using Mail2Forum (http://www.mail2forum.com)
-
- Posts: 717
- Joined: Sun Aug 10, 2008 4:24 am
- Location: Southern California
[BR_forum] &= operator
That is a really good idea!
-- Susan
Mikhail Zheleznov wrote:
-- Susan
Mikhail Zheleznov wrote:
Post generated using Mail2Forum (http://www.mail2forum.com)The += opertaor is nice, so you can say
let total += itemprice
instead of
let total = total + price
It would be even nicer if we had a &= operator for strings for appending
_______________________________________________
BR_forum mailing list
BR_forum@maillist.ads.net (BR_forum@maillist.ads.net)
http://maillist.ads.net/mailman/listinfo/br_forum
[BR_forum] &= operator
In a way we already have it, but the syntax is different.
Try
00010 dim a$*100
00020 let a$="123456"
00030 print a$
00040 let a$(1:0)="abcdef"
00050 print a$
00060 let a$(1000:9999)="ABCDEF"
00070 print a$
00080 let x=int(len(a$)/2)
00090 let a$(x:x-1)="#-#"
00100 print a$
00110 stop
The syntax of let a$+="ABCDEF" on line 60 would be a little easier however.
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.
Try
00010 dim a$*100
00020 let a$="123456"
00030 print a$
00040 let a$(1:0)="abcdef"
00050 print a$
00060 let a$(1000:9999)="ABCDEF"
00070 print a$
00080 let x=int(len(a$)/2)
00090 let a$(x:x-1)="#-#"
00100 print a$
00110 stop
The syntax of let a$+="ABCDEF" on line 60 would be a little easier however.
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.
Post generated using Mail2Forum (http://www.mail2forum.com)From: br_forum-bounces@maillist.ads.net [mailto:br_forum-bounces@maillist.ads.net] On Behalf Of Susan Smith
Sent: 09/25/2008 1:05 PM
To: Business Rules Forum
Subject: Re: [BR_forum] &= operator
That is a really good idea!
-- Susan
Mikhail Zheleznov wrote:The += opertaor is nice, so you can say
let total += itemprice
instead of
let total = total + price
It would be even nicer if we had a &= operator for strings for appending
_______________________________________________
BR_forum mailing list
BR_forum@maillist.ads.net (BR_forum@maillist.ads.net)
http://maillist.ads.net/mailman/listinfo/br_forum
[BR_forum] &= operator
To add to Georges post:
LET TOTAL$(99999:0)=”END OF FILE”
You could even go crazy
LET TOTAL$(INF:0)=”END OF FILE”
I remember that this caused a problem, so I don’t do it, but it’s working fine on 4.18.
With the current 32K limit on variables, 99999 is always the end.
Luis I. Gomez
GomezL@CollectionSoftware.com (GomezL@CollectionSoftware.com)
1-800-435-7257
Commercial Legal Software, Inc.
http://www.CollectionSoftware.com
From: br_forum-bounces@maillist.ads.net [mailto:br_forum-bounces@maillist.ads.net] On Behalf Of Mikhail Zheleznov
Sent: Thursday, September 25, 2008 12:53 PM
To: Business Rules Forum
Subject: [BR_forum] &= operator
The += opertaor is nice, so you can say
let total += itemprice
instead of
let total = total + price
It would be even nicer if we had a &= operator for strings for appending
Post generated using Mail2Forum (http://www.mail2forum.com)
LET TOTAL$(99999:0)=”END OF FILE”
You could even go crazy
LET TOTAL$(INF:0)=”END OF FILE”
I remember that this caused a problem, so I don’t do it, but it’s working fine on 4.18.
With the current 32K limit on variables, 99999 is always the end.
Luis I. Gomez
GomezL@CollectionSoftware.com (GomezL@CollectionSoftware.com)
1-800-435-7257
Commercial Legal Software, Inc.
http://www.CollectionSoftware.com
From: br_forum-bounces@maillist.ads.net [mailto:br_forum-bounces@maillist.ads.net] On Behalf Of Mikhail Zheleznov
Sent: Thursday, September 25, 2008 12:53 PM
To: Business Rules Forum
Subject: [BR_forum] &= operator
The += opertaor is nice, so you can say
let total += itemprice
instead of
let total = total + price
It would be even nicer if we had a &= operator for strings for appending
Post generated using Mail2Forum (http://www.mail2forum.com)
[BR_forum] &= operator
Something really important.
A$(1:0) directly adds characters to the beginning of the string without using “Gobs” of workstack.
A$=”FIRST PART”&A$ is similar, but involves a lot of workstack and processing.
Luis I. Gomez
GomezL@CollectionSoftware.com (GomezL@CollectionSoftware.com)
1-800-435-7257
Commercial Legal Software, Inc.
http://www.CollectionSoftware.com
From: br_forum-bounces@maillist.ads.net [mailto:br_forum-bounces@maillist.ads.net] On Behalf Of George Tisdale
Sent: Thursday, September 25, 2008 1:15 PM
To: Business Rules Forum
Subject: RE: [BR_forum] &= operator
In a way we already have it, but the syntax is different.
Try
00010 dim a$*100
00020 let a$="123456"
00030 print a$
00040 let a$(1:0)="abcdef"
00050 print a$
00060 let a$(1000:9999)="ABCDEF"
00070 print a$
00080 let x=int(len(a$)/2)
00090 let a$(x:x-1)="#-#"
00100 print a$
00110 stop
The syntax of let a$+="ABCDEF" on line 60 would be a little easier however.
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.
A$(1:0) directly adds characters to the beginning of the string without using “Gobs” of workstack.
A$=”FIRST PART”&A$ is similar, but involves a lot of workstack and processing.
Luis I. Gomez
GomezL@CollectionSoftware.com (GomezL@CollectionSoftware.com)
1-800-435-7257
Commercial Legal Software, Inc.
http://www.CollectionSoftware.com
From: br_forum-bounces@maillist.ads.net [mailto:br_forum-bounces@maillist.ads.net] On Behalf Of George Tisdale
Sent: Thursday, September 25, 2008 1:15 PM
To: Business Rules Forum
Subject: RE: [BR_forum] &= operator
In a way we already have it, but the syntax is different.
Try
00010 dim a$*100
00020 let a$="123456"
00030 print a$
00040 let a$(1:0)="abcdef"
00050 print a$
00060 let a$(1000:9999)="ABCDEF"
00070 print a$
00080 let x=int(len(a$)/2)
00090 let a$(x:x-1)="#-#"
00100 print a$
00110 stop
The syntax of let a$+="ABCDEF" on line 60 would be a little easier however.
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.
Post generated using Mail2Forum (http://www.mail2forum.com)
From: br_forum-bounces@maillist.ads.net [mailto:br_forum-bounces@maillist.ads.net] On Behalf Of Susan Smith
Sent: 09/25/2008 1:05 PM
To: Business Rules Forum
Subject: Re: [BR_forum] &= operator
That is a really good idea!
-- Susan
Mikhail Zheleznov wrote:
The += opertaor is nice, so you can say
let total += itemprice
instead of
let total = total + price
It would be even nicer if we had a &= operator for strings for appending
_______________________________________________BR_forum mailing listBR_forum@maillist.ads.nethttp://maillist.ads.net/mailman/listinfo/br_forum
[BR_forum] &= operator
I second the motion!
It’s not only easier to code, but faster in execution. The long way: the variable is copied to a temporary variable, the addition performed, and the temporary move back to the original variable. The short way: it is just added. (at least that is the way it was explained when introduced)
Rick Graham
From: br_forum-bounces@maillist.ads.net [mailto:br_forum-bounces@maillist.ads.net] On Behalf Of Mikhail Zheleznov
Sent: Thursday, September 25, 2008 12:53 PM
To: Business Rules Forum
Subject: [BR_forum] &= operator
The += opertaor is nice, so you can say
let total += itemprice
instead of
let total = total + price
It would be even nicer if we had a &= operator for strings for appending
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.169 / Virus Database: 270.7.2/1689 - Release Date: 9/24/2008 6:51 PM
Post generated using Mail2Forum (http://www.mail2forum.com)
It’s not only easier to code, but faster in execution. The long way: the variable is copied to a temporary variable, the addition performed, and the temporary move back to the original variable. The short way: it is just added. (at least that is the way it was explained when introduced)
Rick Graham
From: br_forum-bounces@maillist.ads.net [mailto:br_forum-bounces@maillist.ads.net] On Behalf Of Mikhail Zheleznov
Sent: Thursday, September 25, 2008 12:53 PM
To: Business Rules Forum
Subject: [BR_forum] &= operator
The += opertaor is nice, so you can say
let total += itemprice
instead of
let total = total + price
It would be even nicer if we had a &= operator for strings for appending
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.169 / Virus Database: 270.7.2/1689 - Release Date: 9/24/2008 6:51 PM
Post generated using Mail2Forum (http://www.mail2forum.com)
[BR_forum] &= operator
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.
Post generated using Mail2Forum (http://www.mail2forum.com)
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.
Post generated using Mail2Forum (http://www.mail2forum.com)
[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)>
2008/9/26 Mikhail Zheleznov <zheleznovster@gmail.com (zheleznovster@gmail.com)>
Post generated using Mail2Forum (http://www.mail2forum.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] &= operator
try this to append to end:
let x$='old' : x$(99999:99999)="new" : pr x$
returns:
oldnew
-john b.
p.s. or perhaps: let x$='old' : x$(inf:inf)="new" : pr x$
From: br_forum-bounces@maillist.ads.net [mailto:br_forum-bounces@maillist.ads.net] On Behalf Of Mikhail Zheleznov
Sent: Friday, September 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)>
let x$='old' : x$(99999:99999)="new" : pr x$
returns:
oldnew
-john b.
p.s. or perhaps: let x$='old' : x$(inf:inf)="new" : pr x$
From: br_forum-bounces@maillist.ads.net [mailto:br_forum-bounces@maillist.ads.net] On Behalf Of Mikhail Zheleznov
Sent: Friday, September 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)>
Post generated using Mail2Forum (http://www.mail2forum.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] &= operator
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.
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.
Post generated using Mail2Forum (http://www.mail2forum.com)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 (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] &= operator
Neat trick but: “tricks are for kids” J
From: br_forum-bounces@maillist.ads.net [mailto:br_forum-bounces@maillist.ads.net] On Behalf Of George Tisdale
Sent: Friday, September 26, 2008 11:25 AM
To: Business Rules Forum
Subject: RE: [BR_forum] &= operator
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 George Tisdale
Sent: Friday, September 26, 2008 11:25 AM
To: Business Rules Forum
Subject: RE: [BR_forum] &= operator
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.
Post generated using Mail2Forum (http://www.mail2forum.com)
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 (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] &= operator
I vote in favor of adding the syntax for &=
but then again, I'm also for no line numbers, select case, and config sytle leave_my_indentions_and_capitalization_the_way_i_typed_it.
-jbowman
From: br_forum-bounces@maillist.ads.net [mailto:br_forum-bounces@maillist.ads.net] On Behalf Of Rickie Graham
Sent: Friday, September 26, 2008 11:30 AM
To: 'Business Rules Forum'
Subject: RE: [BR_forum] &= operator
Neat trick but: “tricks are for kids” J
From: br_forum-bounces@maillist.ads.net [mailto:br_forum-bounces@maillist.ads.net] On Behalf Of George Tisdale
Sent: Friday, September 26, 2008 11:25 AM
To: Business Rules Forum
Subject: RE: [BR_forum] &= operator
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.
Checked by AVG - http://www.avg.com
Version: 8.0.169 / Virus Database: 270.7.3/1693 - Release Date: 9/26/2008 7:35 AM
Post generated using Mail2Forum (http://www.mail2forum.com)
but then again, I'm also for no line numbers, select case, and config sytle leave_my_indentions_and_capitalization_the_way_i_typed_it.
-jbowman
From: br_forum-bounces@maillist.ads.net [mailto:br_forum-bounces@maillist.ads.net] On Behalf Of Rickie Graham
Sent: Friday, September 26, 2008 11:30 AM
To: 'Business Rules Forum'
Subject: RE: [BR_forum] &= operator
Neat trick but: “tricks are for kids” J
From: br_forum-bounces@maillist.ads.net [mailto:br_forum-bounces@maillist.ads.net] On Behalf Of George Tisdale
Sent: Friday, September 26, 2008 11:25 AM
To: Business Rules Forum
Subject: RE: [BR_forum] &= operator
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.
No virus found in this incoming message.
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 (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.
Checked by AVG - http://www.avg.com
Version: 8.0.169 / Virus Database: 270.7.3/1693 - Release Date: 9/26/2008 7:35 AM
Post generated using Mail2Forum (http://www.mail2forum.com)
[BR_forum] &= operator
Actually, all you have to do is say:
let mystring$(99999:0)=texttoappend$
it works, try it.
However, for "exactness" i usually say:
let mystring$(len(mystring$)+1:0)=texttoappend$
BR has an excellent substring capacity that has features I've never
seen in any other language.
Gabriel
2008/9/26 Mikhail Zheleznov <zheleznovster@gmail.com>:
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)
let mystring$(99999:0)=texttoappend$
it works, try it.
However, for "exactness" i usually say:
let mystring$(len(mystring$)+1:0)=texttoappend$
BR has an excellent substring capacity that has features I've never
seen in any other language.
Gabriel
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
Post generated using Mail2Forum (http://www.mail2forum.com)
[BR_forum] &= operator
Hey, thats interesting. Whats "inf"?
2008/9/26 George Tisdale <GTISDALE@tisdalecpa.com>:
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)
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
Post generated using Mail2Forum (http://www.mail2forum.com)
[BR_forum] &= operator
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>:
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)
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>:
herein."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
_______________________________________________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
Post generated using Mail2Forum (http://www.mail2forum.com)