clip works fine for me but not for my friend
- I have 4.86 pro she has 4.85 free.
I am trying to make these two lines of delimited numbers (excluding the
first field) modified by taking each field, multiplying it by 1.15 and then
reinserting both the new number and the original number, and looping through
each line until done.
Here is the raw text I start with:
after I apply the clip I get this:
I use this clip .... but it doesn't work for her (she says the cursor moves
but no extra numbers are added like they are for me):
H=ADD 1.15 PERCENT TO DELIMITED
^!SetHintInfo Adding 1.15 to Table...
^!IfTrue ^$IsEmpty(^%LastChar%)$ Next else AddReturn
^!IfFalse ^%1Pass% Skip
^!If ^$GetRow$ = ^$GetLineCount$ Save else Next
^!If ^$GetChar$ = 0 Skip
;next line is long one
^!Replace "^$GetField(-1:^%Field%)$" >> "^%Amount1%|^%OrigAmount%" S
;end of long line
^!If ^%FieldCount% = 9 Reset
^!IfTrue ^$IsEmpty(^%LastChar%)$ Next else AddReturn1
I tried using the debug ... it doesn't debug for her.
----- Original Message -----
From: "Jody" <av1611@...>
Sent: Thursday, January 03, 2002 1:30 PM
Subject: Re: [Clip] Re: Debugging a Clip
> Hi Don,
> ^!SetDebug [On|Off] (added in v4.8)
> When enabled, a dialog box pops up just before each statement and
> paste operation is executed. The dialog box shows the parsed
> instruction or the text about to be pasted in the document. There
> are three buttons; "Yes" is for continuing execution until the
> next instruction, "No" disables Debug mode, and "Cancel" ends
> Clip execution.
> >It seems to me that there is a function for debugging like step
> >that lets you go one line at a time ... cannot seem to find it.
> Happy Clip'n!
> Subscribe, UnSubscribe, Options
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
- Hi Don,
This is just a wild guess off the top of my head w/o really
looking into the problem. There might be a point where you have
to add a ^!Jump Select_End. That is not needed in Pro in a lot
of cases when text is selected, but is in Std/Light. If you do
not know it, when you use ^$GetField(...)$ the fields get
selected. You can test it yourself in Light (and instead of
using ^!SetDebug like I gather you tried;) use info boxes
(^!Prompt or whatever) in strategic places in the Clip. I like
to use ^!Info and then a function, testing statement, or variable
that is in a line underneath the ^!Info box. You need to add at
least a character in the box, because if the string is empty, the
^!Info will not come up. If I have no idea where some strategic
places are I usually "divide and conquer" which to me means
setting up an ^!Info box at the start of each loop and also near
the middle if the loops are long, even at the end. You can be
the best judge of where you need them since it is your Clip. ;)
I did not understand the double increments. If you really need
them, try ^!Inc VariableName 2 (I think - haha) for my curiosity's
>I have 4.86 pro she has 4.85 free.Happy Clip'n!
>I am trying to make these two lines of delimited numbers
>(excluding the first field) modified by taking each field,
>multiplying it by 1.15 and then reinserting both the new number
>and the original number, and looping through each line until
Subscribe, UnSubscribe, Options
> I did not understand the double increments. If you really needCode whackers like me never understand why we do things ...
> them, try ^!Inc VariableName 2 (I think - haha) for my curiosity's
> sake. ;)
actually it is because I take one field and replace it with two and then
advance two fields to the next one I need which is why the double increment.