コミュニティ

Script to delete extra characters

Good day!

Maybe someone will tell, faced with the problem of extra characters. When finding elements (in this case, areas) capture small parts of other words, because of this, the "* |; +" symbol appears. Maybe someone knows the script, because I couldn’t find it on my own, allowing me to delete these characters while recognizing them in the necessary element? Thank you very much, I will be very grateful!

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

4件のコメント

  • Avatar
    Ilya Evdokimov

     Your AutoCorrect script should work any time, not when clicked.

    Here is a more powerful Rule Script (VBscript) that can replace automatically various specified characters in all fields added to the rule.

    Dim i

    For i = 0 to me.Fields.Count - 1

      Dim inVal

      inVal = me.Fields.Item(i).Text

      inVal = Replace(inVal, chr(10), "")    'removes line feed/line break

      inVal = Replace(inVal, " ", "")            'replaces space with nothing

      inVal = Replace(inVal, "$", "")           'replaces $ with nothing

      me.Fields.Item(i).Text = inVal

     

    Next

    0
  • Avatar
    Permanently deleted user

    Thanks a lot! But I get an error, do not know what the problem is?

    0
  • Avatar
    Ilya Evdokimov

    We can't help without knowing what the error is and where it happens.

    0
  • Avatar
    Permanently deleted user

    Sorry, there is too little information in the error message that you've provided. If you want to go on with the Rule script, could you please upload your project with some typical documents on a file share and describe us what fields should be corrected.

    Otherwise you may try to use the Autocorrection script:
    http://help.abbyy.com/en-us/flexicapture/12/distributed_administrator/script_conversion
    or set up the datatype (based on alphabet or regular expression) that will try to recognize words without wrong symbols
    http://help.abbyy.com/en-us/flexicapture/12/distributed_administrator/properties_data_type_text

    0

サインインしてコメントを残してください。