跳到主内容

搜索

搜索

Serializing When Db Field Changes

评论

1 条评论

  • Avatar
    Michael Toupin (mtoupin

    This functionality was introduced in BarTender 10.1.  In the 'reset' tab, you'd check the box for 'data changes', then specify the field.

     

    To do it in VB scripting it's a bit more complicated.  What you have to do is to create a variable, then on print start assign the database field to it.  

     

    So OnPrintStart do:

     

    Counter = Field(databasefield)

     

    Then OnNewRecord do:

     

    If Counter <> Field(databasefield) then 

    value  = 1 

    Counter = Field(Databasefield)

    end if

     

     

    so that it only resets if the database info is different than the previous info.

    0

请先登录再写评论。