AnsweredAssumed Answered

Printing script problem fm 10

Question asked by nealt on Feb 19, 2009
Latest reply on Mar 2, 2009 by TSGal

Title

Printing script problem fm 10

Post

The following script attempts to print out all records within a specific range. It doesn't do anything. Can someone help?

 

Open File [ "Auction" ]

Go to Layout ["Invoices" (Auction) ]
View As [ View as Table ]
Show Custom Dialog [Title: "Field Range"; Buttons: "OK", "Cancel"; Input #1: Auction::firstprint, "From Pattie #"; Input #2: Auction:· lastprint, "To pattie #" ]
Set Field By Name [Auction:: Pattle number = Auction :firstprint ]
If [Auction:: Pattle number < Auction::lastprint ]
   Go to Field [Auction:: Pattle number ]
   Enter Find Mode [Specified Find Requests: Find Records; Criteria: Auction:: Pattle number: "=pattle number" ] [ Restore; Pause ]
   Perform Find [Specified Find Requests: Find Records; Criteria: Auction:: Pattle number: "=pattle number" ] [ Restore ]
   If [Auction::Total>0 ]
      Print [ ]
   End If
   Set Field By Name [Auction:: Pattle number = Auction:: Pattle number+1 ]
End If
Enter Browse Mode 

Outcomes