跳到主内容

搜索

搜索

Format datetime in string

评论

1 条评论

  • 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

请先登录再写评论。