跳到主内容

搜索

搜索

Comparing Two Prompt Values

评论

2 条评论

  • 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

请先登录再写评论。