Terry setting a custom property worked as well !
Terry Judd wrote:
What about using custom properties? You would set a property (e.g. CID)
for
each of the four buttons in a group to A, B, C or D and then use a script
in
the group something like this...
on mouseUp
if the cID of
to be changed, so no untoward effects.
But I would never have got it except for the suggestions, which now all go
into the scrapbook for a time when there is no plan B. Thanks.
--
View this message in context:
http://www.nabble.com/question-about-find-and-replace-tp19737669p19832624.html
Sent from
How do you pad out a series of numbers with leading zeros? Like for instance
the series is
.1.
.2.
.3.
.11.
.42.
.98.
and you want them to be
.001.
.002.
.003.
.011.
.042.
.098.
I know how to find them, using the fact that they appear as shown between
two . characters, but then I don't
Hi Peter,
Here's a possibility. Perhaps someone can come up with a shorter
version.
constant dot = .
function formatDottedNumbers
set the numberformat to 000
set the itemDel to dot
repeat for each line myLine in myData
put dot item 2 of myLine * 1 dot cr after myNewData
end
Recently, Peter Alcibiades wrote:
How do you pad out a series of numbers with leading zeros? Like for instance
the series is
.1.
.2.
.3.
.11.
.42.
.98.
and you want them to be
.001.
.002.
.003.
.011.
.042.
.098.
You can use the format function. For example:
answer
The same thing
answer format(%_3s,1) ??
instead of a zero use a dash would work so that you could make numbers line
up that are in a field left aligned instead of right aligned?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please
On 30.09.2008 at 8:54 Uhr +0100 Peter Alcibiades apparently wrote:
How do you pad out a series of numbers with leading zeros? Like for instance
the series is
.1.
.2.
.3.
.11.
.42.
.98.
and you want them to be
.001.
.002.
.003.
.011.
.042.
.098.
I know how to find them, using the fact that
answer format(%03s,1)
will display 001 (the 3 means pad with zeros to 3 places). So if the
decimal points in your number series are intentional, you could make a
function like:
function padNumbers pSeries
repeat for each line tNum in pSeries
put . format(%03s,char 2 to
Peter Alcibiades wrote:
How do you pad out a series of numbers with leading zeros? Like for instance
the series is
.1.
.2.
.3.
.11.
.42.
.98.
and you want them to be
.001.
.002.
.003.
.011.
.042.
.098.
My solution, among the many:
function paddedList pList
put into tPadding
Just for diversity's sake, I have often used a function like the
following:
function zeroPad pText,pLength
repeat max(0, pLength - length(pText))
put 0 before pText
end repeat
return pText
end zeroPad
put zeroPad(13, 4) = 0013
put zeroPad(5, 4) = 0004
etc.
Recently, Peter Alcibiades
Hello everyone:
Will someone confirm this Find and Replace window problem before I
file a bug report?
1) Command-F (in stack view)
2) Find: Show/Hide Timing Information
In: This Stack
3) Check (√): Script
Check (√): Button Text
Check (√): All Other
4) Click on the Find button
Sorry, forgot to mention the platform:
Intel Mac
10.5.1
--
Regards,
Howard Bornstein
---
www.designeq.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage
Works without problems under Rev. 2.8.1
--
Regards,
Howard Bornstein
---
www.designeq.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
Will someone confirm this Find and Replace window problem before I
file a bug report?
1) Command-F (in stack view)
2) Find: Show/Hide Timing Information
In: This Stack
3) Check (√): Script
Check (√): Button Text
Check (√): All Other
4) Click on the Find button
What
Thanks a million Jan!
Wouldn't it be easier if you kept the transition
separate in a custom handler that you could call from
other places?
The custom handler is definitely the way to go! It's almost
embarassing, because I've been using custom handlers forever, but
always a custom handler
Hi all,
I am trying to duplicate the find and replace tool in the rev IDE in
a button script. I have a large project in macOSX that needs a few
dozen little tweeks when I make a Windows standalone. I put these
all into a button so when I make a new Windows standalone just one
click
--- Lars Brehmer [EMAIL PROTECTED] wrote:
Hi all,
I am trying to duplicate the find and replace tool
in the rev IDE in
a button script. I have a large project in macOSX
that needs a few
dozen little tweeks when I make a Windows
standalone. I put these
all into a button so when I
this successfully
but
have some questions I don't understand about the process:
a. I opened Find and Replace... from the Edit menu, typed in 2006 in the
Find field and checked off Name and Script, since these are the places
where 2006 appears. While in the Main stack, I chose the search process to
occur
the process:
a. I opened Find and Replace... from the Edit menu, typed in
2006 in the
Find field and checked off Name and Script, since these are
the places
where 2006 appears. While in the Main stack, I chose the search
process to
occur in This stack file and its stack files, then clicked
Find
. I've done this
successfully but
have some questions I don't understand about the process:
a. I opened Find and Replace... from the Edit menu, typed in
2006 in the
Find field and checked off Name and Script, since these are
the places
where 2006 appears. While in the Main stack, I chose
[EMAIL PROTECTED] wrote:
B. What is the difference between selecting This stack file versus This
stack and This stack file and its stack files? I presume that This stack
file and its stack files refers to this stack and its substacks. What is the
difference between a stack file and a
This may interest some of you. You may have stumbled across something
with the replace command. Let's say I have a chunk that contains the
word blah. I want to replace all occurrences of blah with
noblah which those of you who are astute see contains the word it
replaces. If I call the
On 9/28/06 1:12 AM, Robert Sneidar [EMAIL PROTECTED] wrote:
What I needed was something that would replace the WORD blah with the
WORD noblah, ignoring words that CONTAIN blah, including subsequent
search and replace executions.
Bob, you can use replaceText with regular expressions to get the
Recently, Robert Sneidar wrote:
This may interest some of you. You may have stumbled across something
with the replace command. Let's say I have a chunk that contains the
word blah. I want to replace all occurrences of blah with
noblah which those of you who are astute see contains the word
Hmmm nice. I have not quite figured out regular expressions yet. I
will have a look at them again. I did need a function so I could
exclude comment lines which might inadvertently look for things I am
trying to replace (like empty with foxEMPTY in my Foxpro Functions
library). Still,
I was hoping for a final clarification and consensus regarding
command-F Find and Replace. The thread died before I got on.
I read various reports of Find and Replace speed in version 2.5.1. Oh well...
Not wishing to be tedious -- Is there consensus that Find and
Replace in version 2.6.x
Not wishing to be tedious -- Is there consensus that Find and
Replace in version 2.6.x is as fast as the CPU allows? In other
words, as fast as the find command, on the same search in the
same stack?
Well it's different. The find command goes to the next instance
only, while Find
that's the same command as typing 'find polydipsical' into
the msg box. That command works almost instantaneously for me, even
in a pretty big stack with a large number of fields.
I'm talking about the find and replace window you get by typing
command-F. That worked hopelessly slow before I
command-f, the word
I want to search for, and return, before I realized that I was
unintentionally using the find and replace window. A couple of
other checkboxes were checked off, in addition to field text, and
the stack was not small. I had time to brew a pot of tea, preheat the
oven, and bake
Several times in the last few days, I have typed command-f, the
word I want to search for, and return, before I realized that I was
unintentionally using the find and replace window. A couple of
other checkboxes were checked off, in addition to field text, and
the stack was not small. I
and Replace
Several times in the last few days, I have typed command-f, the
word I want to search for, and return, before I realized that I was
unintentionally using the find and replace window. A couple of
other checkboxes were checked off, in addition to field text, and
the stack was not small. I
: Arrrgghh -- Find and Replace
Several times in the last few days, I have typed command-f, the
word I want to search for, and return, before I realized that I was
unintentionally using the find and replace window. A couple of
other checkboxes were checked off, in addition to field text
There is a bug in the Find Replace when used on fields. Chipp has
posted a fix and you can find the details here:
http://lists.runrev.com/pipermail/use-revolution/2005-February/050697.html
It really doesn't take long and normally the Find button becomes a
Stop button when searching, but I
Sarah and Jim,
I believe the bug has been fixed in the latest version of the IDE. Sarah
is correct, the usual Find is VERY VERY fast and shouldn't take much
time at all.
-Chipp
Sarah Reichelt wrote:
It works for me, but you may still be experiencing problems due to the
Rev server change.
Any downside to the patch if applied to 2.6, as I just did?
Sarah and Jim,
I believe the bug has been fixed in the latest version of the IDE.
Sarah is correct, the usual Find is VERY VERY fast and shouldn't
take much time at all.
-Chipp
___
Hi Timothy!
Timothy Miller wrote:
In spite of the welcome patch, find in the message box searches all
the field text in the stack almost instantaneously. The find in the
find-and-replace window, searching for field text only, in this stack
only, takes 100 to 1000 times as long. That just
Timothy-
Tuesday, June 28, 2005, 8:39:04 PM, you wrote:
TM It still seems to me that a stop searching button on this window
TM would be a welcome addition, unless it can be made to work so fast
TM that none would be necessary.
TM Is there something I'm not getting?
I can't imagine how you're
On 6/28/05 7:47 PM, Jim Bufalini wrote:
Now if I could just learn the best ways to use
the debugging features... Hmmm, what will I do with all the extra time!
We will be having a scripting conference on the debugger, though it is
quite a ways into the future (fall, I think). Still, keep an
No problem, it's the exact same script fix as the original. You just
patched it to be the same as it was.
-Chipp
Stephen Barncard wrote:
Any downside to the patch if applied to 2.6, as I just did?
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 /
Hello list...
I think this has been asked many times, but i did not find any
satisfying answer...
I need to do the following :
repeat with x=1 to the number of chars of the clicktext+5
put _ after char x of tChar
end repeat
replace the clicktext with tChar in fld 1
where i want
Assuming I understand the problem... try including word delimiters in
both the replaced and the replacing text:
get the clickText
put underscores(length(it)) into tChars -- func makes __ string
put space it space into tBad
put space tChars space into tGood
replace tBad with tGood
On Jun 6, 2005, at 2:36 PM, Christian Langers wrote:
I need to do the following :
repeat with x=1 to the number of chars of the clicktext+5
put _ after char x of tChar
end repeat
replace the clicktext with tChar in fld 1
where i want the exact word to be replaced...
e.g. I click
Hi there,
thanks for the hints...
I'm with Rev 2.6. and I have used this (which works !)
put the clickText into tVar
put replaceText(fld 1,\btvar\b,underscores(length(tvar))) into
fld 1
function underscores pCount
repeat (pCount)+5
put _ after tString
end repeat
return
On Monday, June 6, 2005, at 12:56 PM,
[EMAIL PROTECTED] wrote:
I click da and I just want this to be replaced in the field
(not das, Dach,Dame,...)
How can I solve this ?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Christian,
My previous example used a flavor of RegEx not supported by Rev.
Sorry. Please modify the example to read:
Put The day is dappled with da and dads.
MatchText (MyText, \bda\b)
--returns true because da is by itself.
ReplaceText (MyText, \bda\b, Ra)
--returns The day is dappled
Christian,
I didn't totally understand your question, but Rev has several ways to
match text. RegEx, which is a tiny language imbedded into Rev, will
match just about any pattern you want, including da without matching
das or Mandant or even Da if you want. Here's how in Rev-RegEx:
Put
Can anyone shed any light on the Find and Replace... feature in Revolution?
I open a stack, and then press command-F. Up comes Find and Replace. I type
in a word to search for, and make sure only Field Text is checked. The
results of the search are baffling -- I get the same card listed over
47 matches
Mail list logo