Skip to main content

Search

Search

Serialization On Vb Script

Comments

5 comments

  • Avatar
    Legacy Poster
    Sorry, I'm unable to follow what you're trying to do, versus what is actually happening.

    I understand you are trying to combine a lot of fields into one. Is just one of the fields not behaving the way you want?
    0
  • Avatar
    Legacy Poster
    Thanks for the reply.

    Yep.I'm trying to combine a lot of fields become one barcode.The combining will involve number as well as alphabet.

    It works ok by using vb script.But i just want to serialize the barcode if it prints identical.Maybe since it is a mixture of alphabet and number barcode,it doesn't get it.That's what i think.

    Hope i clear the question up.Thank you.
    0
  • Avatar
    Legacy Poster
    This is what i wrote actually in vb script to combine different field data for displaying human readable text for barcode.I wrote in at onAutoSelectedEvent

    Value = "K"&Trim (Field("'Kanban Print$'.F2") )&"1000"& Field("'Kanban Print$'.F10")&"000"&Field("'Kanban Print$'.F7")&" "&Field("'Kanban Print$'.F9")&"00000"&Field("'Kanban Print$'.F17")
    Eg:XXXXXXXXXXX XXXXXX1

    What i want is to print a serialize barcode when it prints identical.

    I have tried to write at onIdenticalCopies on event control script,
    Value = "K"&Trim (Field("'Kanban Print$'.F2") )&"1000"& Field("'Kanban Print$'.F10")&"000"&Field("'Kanban Print$'.F7")&" "&Field("'Kanban Print$'.F9")&"00000"&Field("'Kanban Print$'.F17")+1

    But when it prints,let say i have printed 2 identical label, it returns both with already serializable data.
    Output:XXXXXXXXXXX XXXXXX2

    I couldn't figure why and any other alternatives that can help me.Any help would be appreciated much.
    0
  • Avatar
    Shotaro Ito
    I would create 2 (or more) substrings within the barcode's datasource.

    1st substring:
    XXXXXXXXXXXXXXXX XXXXXX (current data source)

    2nd substring: Event control script

    OnAutoSelectedEvent
    Value = 0

    OnNewRecord
    Value = 0

    OnIdenticalCopies
    Value = Value + 1

    More options > Minimum to 2, fill by "0" from left, disable warning
    Serialization disabled

    You can create multiple substrings in datasoruce, from advanced datasource dialog shown by [Advanced] button.
    0
  • Avatar
    Legacy Poster
    [quote name='Shotaro I -Seagull Support' timestamp='1329798209' post='1787']
    I would create 2 (or more) substrings within the barcode's datasource.

    1st substring:
    XXXXXXXXXXXXXXXX XXXXXX (current data source)

    2nd substring: Event control script

    OnAutoSelectedEvent
    Value = 0

    OnNewRecord
    Value = 0

    OnIdenticalCopies
    Value = Value + 1

    More options > Minimum to 2, fill by "0" from left, disable warning
    Serialization disabled

    You can create multiple substrings in datasoruce, from advanced datasource dialog shown by [Advanced] button.
    [/quote]

    Thanks for the solution.This is what i am looking for.
    Thank you so much.
    0

Please sign in to leave a comment.