Bartender中调用数据库字段并基于vbs脚本进行逻辑判断输出
2025-10-10
分类: 摘录 (评论)
Bartender调用数据库字段label_list.LOT1和label_list.QTY1,然后通过判别LOT1是否为空进行格式化输出。代码如下:
ReferenceField("label_list.LOT1")
ReferenceField("label_list.QTY1")
If Field("label_list.LOT1", "") <> "" Then
Value = Field("label_list.LOT1", "") & ":" & Field("label_list.QTY1", "")
Else
Value = ""
End If