Zum Hauptinhalt gehen

Suche

Suche

Comparing Two Prompt Values

Kommentare

2 Kommentare

  • Avatar
    Shotaro Ito

    Hi sigmapoint,

    Event control script "onPostPrompt" Event takes such request.

    create a text and select data source as VB Script, Event control script.

     

    In OnPostPrompt event,

    'Called after the data entry form is closed either at the beginning of print job or once
    'every record, depending on the defined frequency options.
    
    if Format.NamedSubStrings("txtBID1").Value <> Format.NamedSubStrings("txtBID2").Value Then
    call Format.CancelPrinting("Data must be the same - printing cancelled","")
    End if
    
    

    CancelPrinting's 2nd parameter specifies "Continue" button label. If "" is specified, it doesn't give you option to print.

    [attachment=988:VBS-compare data.png]

    0
  • Avatar
    Legacy Poster

    Thank you so much this works as I was hoping it would. 

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.