Conditionally change text from database field
Hi, I have VB script query for BarTender 10.1 SR4
I'm trying to replace text "700mA" with "500mA" within a text object populated from a database field "Languages$.Main Text A", but conditionally based on a Check Box Control "Variable" with value either "01" or "02".
I'm thinking something like the following (which doesn't work):
IF Format.NamedSubStrings("Variant").Value = "01" THEN
Field("Languages$.Main Text A").Value = Replace(Field("Languages$.Main Text A"), "700mA", "500mA")
End If
I'd be grateful if someone could give me some guidance on getting this to work.
Thanks, Justin
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
0 commentaire