Aller au contenu principal

Recherche

Recherche

Format datetime in string

Commentaires

1 commentaire

  • 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

Vous devez vous connecter pour laisser un commentaire.