Skip to main content

Search

Search

Conditionally Print A Certain # Of Labels

Comments

1 comment

  • Avatar
    Legacy Poster

    Seems like you're pretty close to the solution you're looking for. I'm not sure it'll work, but it's worth a shot.

    I suggest you put the final script in the "OnPostPrompt" event as the script requires data that's only available after the data entry / prompt dialog has been filled.

     

    What your script is missing is assignment to the "Value" variable. Otherwise, the script / BarTender won't know what to do with your "Then"-statements.

     

    If Format.NamedSubStrings("CheckboxData").Value = "N" Then
        Value = Field("Labels")
    ElseIf Format.NamedSubStrings("CheckboxData").Value = "Y" Then
        Value = Format.NamedSubStrings("NumberData").Value
    End If
    
    1

Please sign in to leave a comment.