AnsweredAssumed Answered

Find in a script problems continue

Question asked by nealt on Mar 4, 2009
Latest reply on Mar 5, 2009 by nealt

Title

Find in a script problems continue

Post

I am still having problems in a scripted find in a loop so I will ask my question in a different way.


This works but of course I do not want to manually put in n:
P  is a field on the form which is in tableView

Enter Find Mode
Show custom Dialog(Input #1:firstprint,Input#2:lastprint
Set field (p;firstprint)
Set Variable($f;Value:firstprint)
loop
    exit loop if (p>lastprint)
    Show custom dialog(Input#1:p)
    perform find[]
    Set variable [$f:Value $f+1]
    Set Field[p;$f]
End loop

But this does not work:

Enter Find Mode
Show custom Dialog(Input #1:firstprint,Input#2:lastprint
Set field (p;firstprint)
Set Variable($f;Value:firstprint)
loop
    exit loop if (p>lastprint)
    perform find[]
    Set variable [$f:Value $f+1]
    Set Field[p;$f]
End loop


Basically if I manually enter a number for P the find works properly. If I enter P from a calculation the find does not increment but remains at the previous p value.

Thanks.

















Outcomes