Zum Hauptinhalt gehen

Suche

Suche

Format datetime in string

Kommentare

1 Kommentar

  • Avatar
    Peter Thane

    The Like command is not present in VB script.

    If the data string is always the same length you could just extract the date elements you want from the string something like this (there are probably better ways to code it , but this works)

    Value = Format.NamedSubStrings("csn").Value

    Value = Right(Value,21)

    Value1 = Left(Value,10)

    Value2 = Left(Value1,2)

    Value3 = Right(Value1,2)

    Value = Value2 & "/" & Value3

     

    (You may have to make this and event controlled script to be processed after the barcode data is entered, such as OnIndenticalCopies for example)

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.