t; way?
> >
> > I have to change the beginning of a string.
> >
> > The original string is ALWAYS proceeded by _parm
> [...]
> > I have thousands of beginnings that need changing so I am trying
> >
> > put replaceText (field "Gates", * & &qu
nings that need changing so I am trying
>
> put replaceText (field "Gates", * & "_parm", "Study4") into field
> "StudyGroup"
Try put replaceText (field "Gates", ".+_parm", "Study4") into field
"StudyGro
being
Study401.zip
I have thousands of beginnings that need changing so I am trying
put replaceText (field "Gates", * & "_parm", "Study4") into field
"StudyGroup"
The * & is what I need help with... what is a method for doing a wildcard
I think you have a point and will store it as a binary in a custom
property.
thanks again
-=>JB<=-
On Jun 7, 2009, at 2:11 PM, Richmond Mathewson wrote:
There are 2 schools of thought about this sort of problem:
1. The elegant code school.
2. The garden spade school.
I belong to the sec
school of though is I could not get replaceText to do the job and
your
solution works so I am happy.
-=>JB<=-
On Jun 7, 2009, at 2:11 PM, Richmond Mathewson wrote:
There are 2 schools of thought about this sort of problem:
1. The elegant code school.
2. The garden spade school.
I bel
There are 2 schools of thought about this sort of problem:
1. The elegant code school.
2. The garden spade school.
I belong to the second; as I am not unduly worried about the
fact that a couple of extra lines of code may add a few micro-seconds
to the time taken for it to execute. Hence the "D
Got it working, thanks
I was concerned if it would find the text if it had other characters
on each side instead of spaces and like you say it works.
-=>JB=-
On Jun 7, 2009, at 1:46 PM, Richmond Mathewson wrote:
I don't think Runtime Revolution as such parses
words the way human beings do, it
I don't think Runtime Revolution as such parses
words the way human beings do, it will replace
any string (or part thereof) with any other string.
For the sake of argument try this:
on mouseUp
put "id=d2b516" into oldWord
put "id=xyz59wk" into newWord
if fld id 1004 contains "id=d2b516" then
That did it! I was going to tell you I got an error because for some
reason I didn't change fSATUFF to fld id 1004 but you caught it
before I had a chance.
thanks to everyone for the help.
-=>JB<=-
On Jun 7, 2009, at 1:22 PM, Richmond Mathewson wrote:
Sorry, should have written:
on mouseUp
Will this work if it needs to be characters and not words?
I will give it a try and get back with you.
-=>JB<=-
On Jun 7, 2009, at 1:19 PM, Richmond Mathewson wrote:
Dunno what all the fuss is about;
this works:
on mouseUp
put "id=d2b516" into oldWord
put "id=anything" into newWord
if fl
If you really insist on using replaceText you can do this:
on mouseUp
put "id=d2b516" into oldWord
put "id=anything" into newWord
if fld id 1004 contains "id=d2b516" then
put replaceText(fld id 1004, oldWord, newWord) into fld id 1004
end if
end mouseUp
Sorry, should have written:
on mouseUp
put "id=d2b516" into oldWord
put "id=anything" into newWord
if fld id 1004 contains "id=d2b516" then
replace oldWord with newWord in fld id 1004
end if
end mouseUp
rather than
on mouseUp
put "id=d2b516" into oldWord
put "id=anything" into newWord
if
Dunno what all the fuss is about;
this works:
on mouseUp
put "id=d2b516" into oldWord
put "id=anything" into newWord
if fld id 1004 contains "id=d2b516" then
replace oldWord with newWord in fld "fSTUFF"
end if
end mouseUp
-= JB =- wrote:
Below is a piece of text from the field,
/link
Longer please?
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
Snapper Screen Recorder 2.0.1 http://snapper.economy-x-talk.com
If you sent me an e-mail before 15 May and haven't got a reply yet,
please send me a reminder.
On
Below is a piece of text from the field,
/link.php?&gr=1&id=d2b516&url=/ftt/
I will be replacing id=d2b516 with id=anything
-=>JB<=-
On Jun 7, 2009, at 1:00 PM, Mark Schonewille wrote:
JB, can you post a piece of the text you are modifying?
--
Best regards,
Mark Schonewille
Economy-x-Tal
JB, can you post a piece of the text you are modifying?
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
Snapper Screen Recorder 2.0.1 http://snapper.economy-x-talk.com
If you sent me an e-mail before 15 May and haven't got a reply
end repeat
--answer replaceCode
put line n of newText into newCode
repeat 4 times
delete last char of newCode
end repeat
--answer newCode
--exit to top
put replacetext(findCode, replaceCode, newCode) into fld id
1004
end
Please note the difference in programming languages between a command
and a function syntax.
Command
replace findWords with newWords in fld "fSTUFF"
--the original has been changed
Function
put replaceText(field "Stats",return,comma) into newTextBlock
--the original rem
ceCode
put line n of newText into newCode
repeat 4 times
delete last char of newCode
end repeat
--answer newCode
--exit to top
put replacetext(findCode, replaceCode, newCode) into fld id
1004
end repeat
repeat with n = 1 to nu
Funnily enough I've nev r used this before . . .
Tried your recipe and duplicated your error & more importantly:
I know why . . .
If you look in the Documentation under replaceText it shows this:
replaceText(field "Stats",return,comma)
while your
replacetext(fld
Hmmm... wait a sec...
Which version of Revolution are you using and are you executing this
function from the message box? If so, there is a problem with the
message box, which now requires you to put "put" or "get" in front of
every function you execute from the message box.
--
Best regar
OK, JB, Could you post your actual script? Do you realise that this is
a function, not a command? You need to use "put".
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
Snapper Screen Recorder 2.0.1 http://snapper.economy-x-talk.c
per.economy-x-talk.com
If you sent me an e-mail before 15 May and haven't got a reply yet,
please send me a reminder.
On 7 jun 2009, at 21:20, -= JB =- wrote:
The Rev dictionary shows the following two forms for replaceText,
replacetext("malformed","mal","w
inder.
On 7 jun 2009, at 21:20, -= JB =- wrote:
The Rev dictionary shows the following two forms for replaceText,
replacetext("malformed","mal","well") -- returns "wellformed"
replacetext(field "Stats",return,comma) -- makes comma-delimited
Let
The Rev dictionary shows the following two forms for replaceText,
replacetext("malformed","mal","well") -- returns "wellformed"
replacetext(field "Stats",return,comma) -- makes comma-delimited
Let's say I want to replace the text "Hel
Hi Jim, Mark and Peter,
Am 30.06.2007 um 20:36 schrieb Jim Ault:
I did my first answer without the "right before the suffix" part
\d means digit
[^\d] means non-digit
[^\d\n\.] means non-digit, not linefeed and not period
Using replaceText makes the task a bit difficult but
I did my first answer without the "right before the suffix" part
\d means digit
[^\d] means non-digit
[^\d\n\.] means non-digit, not linefeed and not period
Using replaceText makes the task a bit difficult but here is a solution that
works:
--need to setup a condition where digits no
Klaus-
Saturday, June 30, 2007, 5:43:22 AM, you wrote:
> I already filtered all jpg and png files from the list, then I use
> e.g. :
> ...
> put replacetext(tolower(tFiles5),"[a-zA-Z]","") into tFiles6
Try this...
put matchText(tolower(tFiles5),"([0-9]+)\.
Klaus-
Saturday, June 30, 2007, 5:43:22 AM, you wrote:
> I already filtered all jpg and png files from the list, then I use
> e.g. :
> ...
> put replacetext(tolower(tFiles5),"[a-zA-Z]","") into tFiles6
Interesting. That's a bit of a weird request (just
cture.
>
> I already filtered all jpg and png files from the list, then I use
> e.g. :
> ...
> put replacetext(tolower(tFiles5),"[a-zA-Z]","") into tFiles6
> ...
>
> but don't know how to add ALL non-numeric chars to the syntax.
___
suffix.
So from the above example it should return:
01
22
22
225
...
You get the picture.
I already filtered all jpg and png files from the list, then I use
e.g. :
...
put replacetext(tolower(tFiles5),"[a-zA-Z]","") into tFiles6
...
but don't know how to add ALL non-nu
Rob Beynon wrote:
Dear All
Why does (in the message box even, but also in scripts)
put the replacetext("[EMAIL PROTECTED]","@",".") give "dah.dah"
but
put the replacetext("dah.dah",".","@") give "@ @ @ @ @ @ @&q
Dear All
Why does (in the message box even, but also in scripts)
put the replacetext("[EMAIL PROTECTED]","@",".") give "dah.dah"
but
put the replacetext("dah.dah",".","@") give "@ @ @ @ @ @ @"
t
Does this work:
Put "\" & quote into tRep
Replace tRep with quote in tString
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Todd Geist
Sent: Tuesday, October 04, 2005 3:35 AM
To: use-revolution@lists.runrev.com
Subject: ReplaceText and Ba
Hello,
I have a string that comes from Applescript and it has a bunch of /" in it.
It looks like this
Script id=\"7\" name=\"New Script 2\" includeInMenu=\"True\"
I would like to replace the Backslash Quote string with just Quote. But this
does not work.
put
THANKS! that did it
On 10/4/05 12:50 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> try to "escape" the backslash first.
>
> put replacetext( fld 1, backslash&backslash & quote , quote ) into fld 1
--
Todd Geist
_
try to "escape" the backslash first.
put replacetext( fld 1, backslash&backslash & quote , quote ) into fld 1
which is not necessary with
replace backslash & quote with quote in fld 1
cheers
-=-
Xavier
[EMAIL PROTECTED] wrote
uot; name=\"New Script 2\" includeInMenu=\"True\"
I would like to replace the Backslash Quote string with just Quote.
But this
does not work.
put replaceText (theString, backslash & quote, quote)
Best Regards from Paris,
Eric Chatonet.
Hello,
I have a string that comes from Applescript and it has a bunch of /" in it.
It looks like this
Script id=\"7\" name=\"New Script 2\" includeInMenu=\"True\"
I would like to replace the Backslash Quote string with just Quote. But this
does not work.
put
(This will teach me to not send things before their time...)
What I posted as a bug with replaceText in 2.6 is actually a bug in 2.5.1
that I was taking advantage of and thought it was "normal", so when it was
fixed in 2.6 I thought it was a bug.
As many have pointed out to me, the
y who have purchased the Standard version, so this is the fastest way to
communicate with you all.
I have recently logged a bug in Bugzilla (#3074) related to Rev 2.6 (I'm
running Build 108) that has a replacetext problem that causes issues with
the XML Library (since that's what it
Rev cgi is great also on the windows platform... I fixed all the problems
and now it works!
Ciao Paolo
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
got " HTTP InternalError 500 from the browser" when I tried to run
an Hello World script.
Any suggestions?
Paolo Mazza
Venerdì, 15 Apr 2005, alle 21:44 Europe/Rome, jbv ha scritto:
Hi all,
I just noticed that the replaceText function doesn't
work in Rev 2.5 cgi Linux...
Is there a rat
cgi-bin folder and tht's it!
However it does not work on Windows XP.
I got " HTTP InternalError 500 from the browser" when I tried to run
an Hello World script.
Any suggestions?
Paolo Mazza
Venerdì, 15 Apr 2005, alle 21:44 Europe/Rome, jbv ha scritto:
Hi all,
I just noticed that
On Apr 18, 2005, at 10:55 AM, David Burgun wrote:
This works fine. I just wanted a one liner to get the name of a Stack
other that the current stack in the current Folder.
Like this?
put renamedFile(oldPath,newName) into myString
Now all you have to do is define the function in some common plac
I've got it to work just by assigning the names to variables and then
using the variables in the replaceText function., as in:
local myTemp1
local myTemp2
local myString
put the filename of this stack into myTemp1
put the short name of this stack into myTemp2
put replaceText(myTemp1, my
Hi Dave,
You might choose another method:
set the itemDel to slash
put the filename of this stack into tPath
put "StackFileAnotherFile.rev" into item -1 of tPath
Le 18 avr. 05, à 18:39, David Burgun a écrit :
Hi Dave,
put replaceText(the filename of this stack,the short name of
Hi Dave,
put replaceText(the filename of this stack,the short name of this
stack,"xx") into myString
Works fine here when the name of the file is the same as the name of
the stack (disregarding the extension).
But they can be DIFFERENT and then associate these 2 references
migh
On Apr 18, 2005, at 9:34 AM, David Burgun wrote:
Anyone got any ideas on this one:
I don't know why those don't work the same, but maybe this applies:
The dot (period) has a special meaning in regular expressions.
Function replaceText() uses a r
Hi Dave,
put replaceText(the filename of this stack,the short name of this
stack,"xx") into myString
Works fine here when the name of the file is the same as the name of
the stack (disregarding the extension).
But they can be DIFFERENT and then associate these 2 references mig
Hi,
Anyone got any ideas on this one:
This doesn't work:
local myString
put replaceText(the filename of this stack,the short name of this
stack,"xx") into myString
The Trailing ".rev" is removed
Whereas this does:
local myTemp1
local myTemp2
local myString
put t
Hi all,
I just noticed that the replaceText function doesn't
work in Rev 2.5 cgi Linux...
Is there a rational explanation to this ?
JB
PS : I just finished a cgi script that generates on the fly
PDF files (from 1 to 30 pages) with complex layouts
featuring data from a MySQL DB, and it
see what happens when you create a great product.
You skip over the documentation. Sorry, It's so like Hypercard for me,
that the transition has been very easy for the most part. I just jumped
in and started where I left off,
with tons of new tools!
Biggest problem for me has been getting app
At 1:38 PM -0800 1/23/2002, Mike McManus wrote:
>Awesome!!1 now just have to remember it for a day or two.
>
>Where was this little tidbit hidden...? Not a complaint...just a question
It's in the Encyclopedia section "About the Documentation".
I thought it was also in the Tips, but it wasn't
>Awesome!!1 now just have to remember it for a day or two.
>
>Where was this little tidbit hidden...? Not a complaint...just a question
>
In the tutorial (I think)
--
Greetings.
Yves COPPE
Email : [EMAIL PROTECTED]
___
use-revolution mailing lis
At 10:25 AM -0800 1/23/2002, Mike McManus wrote:
>On Sunday, January 20, 2002, at 03:10 AM, David Vaughan wrote:
>> So, some people aren't reading it and are then complaining. Do they
>> also expect instructions on a milk carton saying "Do not invert after
>> opening"?
>
>Since I originally posted
Awesome!!1 now just have to remember it for a day or two.
Where was this little tidbit hidden...? Not a complaint...just a question
On Wednesday, January 23, 2002, at 02:46 PM, yves COPPE wrote:
>> - On 1/23/2002, Mike McManus wrote:
>> -
>>> I thin
>- On 1/23/2002, Mike McManus wrote:
>-
>> I think I would like to just be able to copy the
>> example from the dictionary to be sure I have the proper syntax for
>> those seldom used commands and functions.
>>
>
>THAT would be nice!
>
>~Roger
>
On Mac,
- On 1/23/2002, Mike McManus wrote:
-
> I think I would like to just be able to copy the
> example from the dictionary to be sure I have the proper syntax for
> those seldom used commands and functions.
>
THAT would be nice!
~Roger
On Sunday, January 20, 2002, at 06:21 , Jeanne A. E. DeVoto wrote:
> Does anyone else have an opinion about this? Any other ways to make it
> crystal clear that a function can't be used as a complete statement, and
> avoid confusing people?
>
> --
> Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
> http:
At 5:40 PM -0800 1/18/2002, Bob Rasmussen wrote:
>To Rev documentation folks:
>
>Given the subtle distinction between commands and functions, I think
>it would be a good idea in the Rev documentation to give examples
>only of usage in proper context. That is, please don't show functions
>alone on
At 5:11 AM -0800 1/18/2002, Mike McManus wrote:
>Why does the line
>
>replaceText((line n of textToParse),"red","blue")
>
>always generate the error: Expression: missing ')' before factor.
It's because it's not a complete Transcript stat
It seems like this type of mistake keeps coming up. I've hit it myself more than
once. Your problem is that replaceText is a function, not a command. You have to use
it in an expression. For example,
get replaceText((line n of textToParse),"red","blue")
--
Mike McManus wrote:
>replaceText((line n of textToParse),"red","blue")
>
>always generate the error: Expression: missing ')' before factor. The
>error comes up with or without the internal parans, and if I use a
>variable instead of a chunk. I ev
Why does the line
replaceText((line n of textToParse),"red","blue")
always generate the error: Expression: missing ')' before factor. The
error comes up with or without the internal parans, and if I use a
variable instead of a chunk. I even get it when I use a
65 matches
Mail list logo