跳至主內容

搜尋

搜尋

Conditionally Print A Certain # Of Labels

評論

1 條評論

  • 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

登入寫評論。