filter command

2002-04-10 Thread yves COPPE
Hello, I have two flds. There are list flds. I'd like to put in a variable the lines which are common to the two flds example Fld 1 one three five Fld 2 One two three four the variable must contain : one three How to proceed ? thanks. -- Greetings. Yves COPPE Email : [EMAIL PROTEC

Filter Command

2005-09-26 Thread Gregory Lypny
Hello Everyone, I've created a search field that uses the Filter command in a keyUp handler in a search phrase field to do searches as I type. What I am not able to do is refresh the search as I delete characters by trapping the deleteKey message. The following handler does no

Filter Command

2005-11-21 Thread Gregory Lypny
Hello Everyone, I'm having a bit of trouble with the Filter command giving me false positives. I'm picking off company names in a file containing news headlines. The headlines file has one headline per line, and each line is tab delimited, where the first item is a unique st

Filter command

2008-05-25 Thread David Bovill
How do you escape chars with the filter command? Specifically what do you do if you want to filter lines that contain the "*" character? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsub

Re: filter command

2002-04-10 Thread Michael Foy
l Message - From: yves COPPE <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 10, 2002 3:05 PM Subject: filter command > Hello, > > > I have two flds. There are list flds. > I'd like to put in a variable the lines which are common to the two flds >

Re: filter command

2002-04-10 Thread Michael Foy
oops put that add in too :-) - Original Message - From: Michael Foy <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 10, 2002 4:14 PM Subject: Re: filter command > how something along the lines > > sorry don't know rr enough to do the s

Re: filter command

2002-04-10 Thread Ken Ray
nesday, April 10, 2002 10:14 AM Subject: Re: filter command > how something along the lines > > sorry don't know rr enough to do the scripting, but here is some pseudo code > put 1 into i > repeat > if line i of fld1 =line i of fld 2 then > put line i of fld1

Re: filter command

2002-04-10 Thread Dave Cragg
At 4:05 pm +0200 10/4/02, yves COPPE wrote: >Hello, > > >I have two flds. There are list flds. >I'd like to put in a variable the lines which are common to the two flds > The following function should do what you want. I'm sure there are other ways. on mouseUp put commonLines(field 1, field 2)

Re: filter command

2002-04-10 Thread Ben Rubinstein
on 10/4/02 4:53 PM, Dave Cragg at [EMAIL PROTECTED] wrote: > At 4:05 pm +0200 10/4/02, yves COPPE wrote: >> Hello, >> >> >> I have two flds. There are list flds. >> I'd like to put in a variable the lines which are common to the two flds >> > The following function should do what you want. I'm

Re: filter command

2002-04-10 Thread Michael Foy
very interesting coding, of course my one won't work, it only compares each line cool code ken, I've learnt quite a bit from your code miock ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution

Re: filter command

2002-04-10 Thread Dave Cragg
At 4:53 pm +0100 10/4/02, Dave Cragg wrote: >function commonLines pList1, pList2 > repeat for each line tLine in pList1 > put 1 into tArray[tLine] > end repeat > repeat for each line tLine in pList2 > add 1 to tArray[tLine] > end repeat > put keys(tArray) into tKeys > repeat f

Re: filter command

2002-04-10 Thread yves COPPE
Hi everybody Thank you for your answers. The script from Ben doesn't give the right answer. Sorry. The faster for comparing big files is the script of Ken The script of Dave is the most interessant, but the order of the lines is totaly changed. So I shall use the script of Ken. Now, my min

Re: filter command

2002-04-10 Thread yves COPPE
>At 4:53 pm +0100 10/4/02, Dave Cragg wrote: > >>function commonLines pList1, pList2 >> repeat for each line tLine in pList1 >> put 1 into tArray[tLine] >> end repeat >> repeat for each line tLine in pList2 >> add 1 to tArray[tLine] >> end repeat >> put keys(tArray) into tKeys >>

Re: filter command

2002-04-10 Thread Ken Ray
m/ - Original Message - From: "yves COPPE" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 10, 2002 11:43 AM Subject: Re: filter command > Hi everybody > > > Thank you for your answers. > > The script from Ben doesn't give t

Re: filter command

2002-04-10 Thread Dave Cragg
At 6:49 pm +0200 10/4/02, yves COPPE wrote: >>This is better, I think. >> >>function commonLines pList1, pList2 >>repeat for each line tLine in pList1 >> put 1 into tArray[tLine] >>end repeat >>repeat for each line tLine in pList2 >> if tArray[tLine] = 1 then >>put 2

Re: filter command

2002-04-10 Thread yves COPPE
>At 6:49 pm +0200 10/4/02, yves COPPE wrote: > >>>This is better, I think. >>> >>>function commonLines pList1, pList2 >>>repeat for each line tLine in pList1 >>> put 1 into tArray[tLine] >>>end repeat >>>repeat for each line tLine in pList2 >>> if tArray[tLine] = 1 then >>>

Re: Filter Command

2005-09-26 Thread Mark Smith
Try on backspaceKey. Mark On 26 Sep 2005, at 16:23, Gregory Lypny wrote: Hello Everyone, I've created a search field that uses the Filter command in a keyUp handler in a search phrase field to do searches as I type. What I am not able to do is refresh the search as I d

Re: Filter Command

2005-09-26 Thread Gregory Lypny
I did. Same problem. Greg On Sep 26, 2005, at 12:02 PM, [EMAIL PROTECTED] wrote: Try on backspaceKey. Mark On 26 Sep 2005, at 16:23, Gregory Lypny wrote: Hello Everyone, I've created a search field that uses the Filter command in a keyUp handler in a search phrase fie

Re: Filter Command

2005-09-26 Thread Mark Smith
Lypny wrote: Hello Everyone, I've created a search field that uses the Filter command in a keyUp handler in a search phrase field to do searches as I type. What I am not able to do is refresh the search as I delete characters by trapping the deleteKey message. The following handler

Re: Filter Command

2005-09-26 Thread Sarah Reichelt
> I've created a search field that uses the Filter command in a > keyUp handler in a search phrase field to do searches as I type. > What I am not able to do is refresh the search as I delete characters > by trapping the deleteKey message. The following handler does nothing:

Re: Filter Command

2005-09-26 Thread Gregory Lypny
Hi Sarah and Mark, What platform are you on? It works on mac OS 10.4, here. Cheers, Mark Tiger, 10.4.2 I don't think you can do it just by passing a keyUp message with no parameter. I would do it by writing a separate handler to do the actual filtering. Then call this filter handler

Re: Filter Command

2005-11-21 Thread Eric Chatonet
s from Paris, Eric Chatonet. Le 21 nov. 05 à 20:29, Gregory Lypny a écrit : Hello Everyone, I'm having a bit of trouble with the Filter command giving me false positives. I'm picking off company names in a file containing news headlines. The headlines file has one headline per

Re: Filter Command

2005-11-21 Thread Alex Tweedly
Gregory Lypny wrote: Hello Everyone, I'm having a bit of trouble with the Filter command giving me false positives. I'm picking off company names in a file containing news headlines. The headlines file has one headline per line, and each line is tab delimited, where the

Re: Filter Command

2005-11-21 Thread Jim Ault
eList) end repeat breakpoint end copy ..then see if the numbers add up like you think There could be 'hidden' characters confusing the filter command In that case the answer would be to [if the char was (11)] replace numtochar(11) with "" in headlineList before doin

Re: Filter Command

2005-11-21 Thread Gregory Lypny
Thanks Eric, Alex and Jim, I'm going to give your debugging suggestion a shot. Greg ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription p

Re: Filter Command

2005-11-22 Thread Wouter
e company names to make sure there are no special chars used. Like for example hard spaces, which alter the string of a word or words if in between. Filter command goes haywire if a "null" character (numtochar(0)) is in a text (origin could be certain wordprocessors, databases o

filter command - problems

2006-11-13 Thread Chris Sheffield
Can anyone tell me why this isn't working? I've got a field with contents like this: 1.0[tab]3[tab]0[tab]3 1.3[tab]1[tab]0[tab]1 1.5[tab]2[tab]0[tab]2 2.0[tab]5[tab]0[tab]5 3.0i[tab]50[tab]0[tab]50 4.5c[tab]1[tab]0[tab]1 8.0[tab]10[tab]0[tab]10 Where [tab] = an actual tab character. I want to a

Re: Filter command

2008-05-25 Thread Sarah Reichelt
On Mon, May 26, 2008 at 8:59 AM, David Bovill <[EMAIL PROTECTED]> wrote: > How do you escape chars with the filter command? Specifically what do you do > if you want to filter lines that contain the "*" character? I replace them with something else, then filter, than chang

Re: Filter command

2008-05-25 Thread David Bovill
I think this works as well? filter shellResult with "*[*]*" > 2008/5/26 Sarah Reichelt <[EMAIL PROTECTED]>: > On Mon, May 26, 2008 at 8:59 AM, David Bovill <[EMAIL PROTECTED]> > wrote: > > How do you escape chars with the filter command? Specifically what

Re: filter command - problems

2006-11-13 Thread Chris Sheffield
Please ignore this post. I seem to be suffering from a major brain cramp today. :-) The filter does indeed work as expected. Sorry to bother everyone. Chris On Nov 13, 2006, at 9:28 AM, Chris Sheffield wrote: Can anyone tell me why this isn't working? I've got a field with contents like t

Re: filter command - problems

2006-11-13 Thread Jim Ault
Works here Mac OSX 10.4.8, Rev 2.7.2 Be sure that your itemDel is set to TAB, or item 1 of container will not be what you think. Tabs can indeed be used in the filter command. Jim Ault Las Vegas On 11/13/06 8:28 AM, "Chris Sheffield" <[EMAIL PROTECTED]> wrote: > Can anyo

filter command and "not" wildcards

2001-12-05 Thread Tom
Hi, I love the filter command and keep trying to make it do more. I would now like to use it to "find" all lines that do not contain a certain item. Specifically filtering for the following string "* 3 *" will find any line that has a 3 as the second

Secrets of the filter command?

2007-06-26 Thread David Bovill
I've always been curious about the filter command - and I am pretty sure from examples I have seen that there is a lot more to it than is shown in the docs. Take this example from Jerry Daniels beautiful Galaxy: filter someScript with "[-ofsgOFSG][-nueNUE][> ntNT]*" W

Re: filter command and "not" wildcards

2001-12-05 Thread andu
Tom wrote: > > Hi, > > I love the filter command and keep trying to make it do more. I would > now like to use it to "find" all lines that do not contain a certain > item. Specifically filtering for the following string "* 3 *" will find >

Re: filter command and "not" wildcards

2001-12-06 Thread Ben Rubinstein
on 5/12/01 8:11 PM, Tom at [EMAIL PROTECTED] wrote: > I love the filter command and keep trying to make it do more. I would > now like to use it to "find" all lines that do not contain a certain > item. I've also requested this. Suggested syntax: filter excludi

Re: filter command and "not" wildcards

2001-12-06 Thread Sivakatirswami
on 12/6/01 8:13 AM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: > I've also requested this. Suggested syntax: > > filter excluding > > It should be one of those things where a relatively small programming effort > produces a considerable expansion in facility. This is very fast: put u

Re: filter command and "not" wildcards

2001-12-07 Thread Ben Rubinstein
on 6/12/01 9:10 PM, Sivakatirswami at [EMAIL PROTECTED] wrote: >> filter excluding >> >> It should be one of those things where a relatively small programming effort >> produces a considerable expansion in facility. > > This is very fast: > > repeat for each line x in dataTofilter > if x c

Multiple arguments with the filter command

2006-10-25 Thread Mark Powell
Another text filtering question, please. I have studied the archives but have not found precisely the solution that works. I have a container vContainer of file names, each line of the form /!?!!// Here are three literal examples: C:/The World/Asia/!?!prologue.ps!/1026/1115309596 C:/T

Filter command not working with tabs??

2010-06-02 Thread Bob Sneidar
turn into theDropData put tab & tab into theFilter filter theDropData without theFilter put theDropData I get: test sw_ sw_test3 < NOTICE if you will, that lines 1 & 2 have 2 tabs together, and 3 does not. The filter command here should give me just line 3

Re: Secrets of the filter command?

2007-06-26 Thread Richard Gaskin
David Bovill wrote: I've always been curious about the filter command - and I am pretty sure from examples I have seen that there is a lot more to it than is shown in the docs. Take this example from Jerry Daniels beautiful Galaxy: filter someScript with "[-ofsgOFSG][-nueNUE][> n

Re: Secrets of the filter command?

2007-06-26 Thread Jerry Daniels
lders are optional in Galaxy. So this use of the filter command would yield any lines in a script beginning with: --> (comment used for handler folders) on (command) fun (function) get (getProp) set (setProp) It also handles any irregularities with regard to upper/lower case. That part

Re: Secrets of the filter command?

2007-06-26 Thread Mark Wieder
David- The filter command uses a subset of regex. I've got BZ #2805 filed to expand the regex syntax used. Jerry's regex string "[-ofsgOFSG][-nueNUE][> ntNT]*" is a great little filter for scanning through scripts looking for handlers: it will catch occurrences of lin

Re: Secrets of the filter command?

2007-06-26 Thread Joe Lewis Wilkins
Mark is the filter command anything at all like the "snake" command we used to have available in HC? I've been wondering about how to search for things in Rev the way I used to do in HC and this kind of looked like it might be applicable. Joe Wilkins On Jun 26, 2007, a

Re: Secrets of the filter command?

2007-06-26 Thread Jim Ault
ust start with "REV" filter it with "[R][E][V]" => line must be exactly "REV" filter it with "*[R][E][V]" => line must end with "REV" filter it with "*rev" => line must end with "rev" upper or lower chars This can get you

Re: Secrets of the filter command?

2007-06-26 Thread Mark Wieder
Joe- Tuesday, June 26, 2007, 4:32:03 PM, you wrote: > Mark is the filter command anything at all like the "snake" command Ummm... "snake"? -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@

Re: Secrets of the filter command?

2007-06-26 Thread J. Landman Gay
le tweaking, the one in the original HC Home stack works. Joe Wilkins On Jun 26, 2007, at 10:30 PM, Mark Wieder wrote: Joe- Tuesday, June 26, 2007, 4:32:03 PM, you wrote: Mark is the filter command anything at all like the "snake" command Ummm... "snake"? -- -Mark Wiede

Re: Secrets of the filter command?

2007-06-26 Thread Jim Ault
discover what it was. I > kind of figured that Rev already had some such thing and I just > haven't found it yet. > > Joe Wilkins > > On Jun 26, 2007, at 10:30 PM, Mark Wieder wrote: > >> Joe- >> >> Tuesday, June 26, 2

Re: Secrets of the filter command?

2007-06-26 Thread Joe Lewis Wilkins
er what it was. I kind of figured that Rev already had some such thing and I just haven't found it yet. Joe Wilkins On Jun 26, 2007, at 10:30 PM, Mark Wieder wrote: Joe- Tuesday, June 26, 2007, 4:32:03 PM, you wrote: Mark is the filter command anything at all like the "snake&

Re: Secrets of the filter command?

2007-06-26 Thread Joe Lewis Wilkins
kind of figured that Rev already had some such thing and I just haven't found it yet. Joe Wilkins On Jun 26, 2007, at 10:30 PM, Mark Wieder wrote: Joe- Tuesday, June 26, 2007, 4:32:03 PM, you wrote: Mark is the filter command anything at all like the "snake" command U

Re: Secrets of the filter command?

2007-06-26 Thread Jim Ault
On 6/26/07 11:25 PM, "Joe Lewis Wilkins" <[EMAIL PROTECTED]> wrote: > Thanks for the reminder Jacqui and Jim. "Snake" was probably a name I > gave it; perhaps not, but it did "snake" through all of the scripts. > I didn't realize that the Rev. "Find and Replace..." is that > versatile; but, then,

Re: Secrets of the filter command?

2007-06-27 Thread Joe Lewis Wilkins
Thanks, Jim. Glad to see you're hard at work close to midnight! I hit the sack early, but am now up and at em. Joe Wilkins On Jun 26, 2007, at 11:51 PM, Jim Ault wrote: On 6/26/07 11:25 PM, "Joe Lewis Wilkins" <[EMAIL PROTECTED]> wrote: Thanks for the reminder Jacqui and Jim. "Snake" was p

Re: Multiple arguments with the filter command

2006-10-25 Thread Jim Ault
out, but that "53" is a > part of the file name in the third example, thereby filtering it in. > This is one reason for the exclamation point tokens in vContainer. > You need to decide if you are going to use: replace "/a/" with "b:" in vContainer wild car

Re: Multiple arguments with the filter command

2006-10-25 Thread Marielle Lange
Would this help? put "ps,europe" into tSearch repeat for each item tItem in tSearch replace tItem with "%" & tItem in tFileList end repeat filter tFileList with "*%*" replace "%" with "" in tFileList This does a "or" choice and returns the file that contain ps or europe. I let yo

Re: Multiple arguments with the filter command

2006-10-25 Thread Marielle Lange
One catch is that if the user inputs something like "53", the operation must recognize the fact that the "53" in the first two examples is not a part of the file name, thereby filtering them out, but that "53" is a part of the file name in the third example, thereby filtering it in. This is on

Re: Multiple arguments with the filter command

2006-10-25 Thread Marielle Lange
Correction: [^/%]*)%?([^/%]* into ([^/%]*)%?([^/%]*)+ which means one or more repetitions of that pattern. This was untested. There is obviously a problem with the parentheses. You could try this: [^/%]*)%?([^/]* but this will only replace the first %53, not the second one. That doesn

RE: Multiple arguments with the filter command

2006-10-25 Thread Mark Powell
ect: Multiple arguments with the filter command Another text filtering question, please. I have studied the archives but have not found precisely the solution that works. I have a container vContainer of file names, each line of the form /!?!!// Here are three literal examples: C:/The

Re: Multiple arguments with the filter command

2006-10-25 Thread Mark Smith
the risks you have seen with the brute force approach like the one above? Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Powell Sent: Wednesday, October 25, 2006 10:04 AM To: use-revolution@lists.runrev.com Subject: Multiple arguments with the filter com

Re: Multiple arguments with the filter command

2006-10-25 Thread Marielle Lange
:04 AM To: use-revolution@lists.runrev.com Subject: Multiple arguments with the filter command Another text filtering question, please. I have studied the archives but have not found precisely the solution that works. I have a container vContainer of file names, each line of the form /!?!!//

Re: Multiple arguments with the filter command

2006-10-25 Thread Jim Ault
On 10/25/06 12:54 PM, "Mark Powell" <[EMAIL PROTECTED]> wrote: > Thanks to both Jim and Marielle for their awesome feedback. Instead of > asking specific questions about the details of your feedback, I want to > ask a general performance question. The filter does work within a > repeat loop like

RE: Multiple arguments with the filter command

2006-10-25 Thread Mark Powell
inal Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marielle Lange Sent: Wednesday, October 25, 2006 2:32 PM To: How to use Revolution Subject: Re: Multiple arguments with the filter command Yep, this was the fast solution to the "and" problem ;-). Best str

Re: Filter command not working with tabs??

2010-06-02 Thread Mark Wieder
Bob- Try > filter theDropData without "*" & theFilter & "*" -- -Mark Wieder mwie...@ahsoftware.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferen

Re: Filter command not working with tabs??

2010-06-02 Thread Mark Schonewille
ilter theDropData without theFilter put theDropData I get: test sw_ sw_test3< NOTICE if you will, that lines 1 & 2 have 2 tabs together, and 3 does not. The filter command here should give me just line 3 shouldn't it?? Perhaps I do not under

Re: Filter command not working with tabs??

2010-06-02 Thread Bob Sneidar
Dangit! I think I already asked this one a couple weeks ago! I remember now. Bob On Jun 2, 2010, at 3:20 PM, Mark Wieder wrote: > Bob- > > Try > >> filter theDropData without "*" & theFilter & "*" > > -- > -Mark Wieder > mwie...@ahsoftware.net > > ___

Re: Filter command not working with tabs??

2010-06-02 Thread Jim Ault
The filter command works on wildcards, not regex Your filter definition = keep lines that are not exactly "tabtab" You might be thinking put "*" & tab & tab & "*" into theFiliter = which means keep lines that do not have at least two tabs in sequenc