Scripting Problem Follow

0
Avatar
Legacy Poster

Hy guys!
I've got a little "problem" with VB scripting in BarTender..
So,
We have a string, and the new task for us is the following:
If the string contains "3011" then write somthing after the string.

For example: 7678[b]3011[/b]kpk01 then write after "ABC". 76783011kpk ABC

How can i make this script?

Thanks,
Mima1017

2 comments

0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

Use an OnProcessData VB script with something like the below expression:

[code]
If InStr(value, "3011") > 0 Then
value = value & " ABC"
End If
[/code]
0
Avatar
Legacy Poster
Comment actions Permalink

[quote name='Ian C - Seagull Support' timestamp='1342604140' post='2883']
Use an OnProcessData VB script with something like the below expression:

[code]
If InStr(value, "3011") > 0 Then
value = value & " ABC"
End If
[/code]
[/quote]

Oh, many thanks for you!!
It's works!

:D :D :D :D

Please sign in to leave a comment.