Community

Script to Take Substring of a Field (First 6 characters)

I am trying to take the first six characters of an extracted field and was wondering if anyone has done this in a simple VB script. I am open to use C# too but I am just more familiar with VB. 

 

Thanks in advance, everyone!

Was this article helpful?

0 out of 0 found this helpful

Comments

3 comments

  • Avatar
    Permanently deleted user

    Right now this is what I have but I do not believe that I am calling the variables correctly:

    Field("ExportDate") = Field("Document Creation Time").Substring(0,6)

    0
  • Avatar
    Permanently deleted user

    Hello,

    For C# :

     

    string Field;

    NewString = Field.Substring(0,6);

     

     

    Regards,

    Hamdi

     

    0
  • Avatar
    Permanently deleted user

    Can you please attach for me an exemple of the doc you have ? 

    Regards,

     

    0

Please sign in to leave a comment.