Re: getting rid of multiple consecutive blanks ?
John Markley <[email protected]> Thu, 05 Nov 2009 20:56:02 -0500
| Newsgroups | gmane.comp.handhelds.palm.peditors |
|---|---|
| Message-ID | <[email protected]> |
Quoting Voytek Eymont <[email protected]>: >> in {LFREGEXP:: it should read /&ifScript@[$&!=0,@@LFR1@@]} > This script has two instances, > > ... does the @@label refer to the label immediately AFTER...? > > 2nd instance needs '10', yes ? > > > {LFR9:: > /&ifAbort@[$&==0] > /&ifScript@[$&!=0,@@LFR10@@]} > {LFR10::A Ah, sorry, yes, it should be @@LFR10@@ in this case. However, in general the pScript name within the @@ @@ in the "/&ifScript" pFunction does not refer to any particular location in the chain, it refers to the specific pScript name no matter where in the pScriptPad it is. These long complex items to do specific tasks that I've been sending you are *chains* of pScripts. That is, you don't have 4 pScripts from me, you have a couple dozen (haven't counted) - but, each individual pScript (except for the last one in each chain) has as its last command to activate another pScript. So, LFR9 says, if there is no text selection STOP (&ifAbort), but if there is a text selection, i.e. a find for the search, then go on and run the pScript named {LFR10. *But*, {LFR10 could be anywhere in your pad, not necessarily right after {LFR9. Paul's program searches the pScriptPad for the specific name each time, which is why you cannot have more than one pScript with the same name. ~ John ------------------------------------ Latest pedit/pToolSet/LapTopHack at http://www.osuweb.net/~pc/pca/pc_all.zip pedit/pToolSet/LapTopHack scripting info/resources at http://www.peditors.com Peditors Forum http://groups.yahoo.com/group/peditors Unsubscribe by writing to peditors-unsubscribe-hHKSG33Tihh4sT85+ipIM4ckdKdSAMto@public.gmane.org! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/peditors/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/peditors/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/