Skip to main content

Search

Search

Disable Warning #5901

Comments

3 comments

  • Avatar
    Ian Cummings
    Moderator

    I guess this is for an OnProcessData event script??  This event kind of assumes that you would want to read the input value, in order to modify it in some way, hence the warning.  Perhaps you should be using a stand-alone VB script data source instead?

     

    I don't know of a way to suppress this myself.

    0
  • Avatar
    Legacy Poster

    It's indeed on an OnProcessData event script.

    What I'm currently doing is this :

    1) We have an activeX call that changes named substrings values (we don't want to change the behavior of the software that make these calls)

    2) In one of these substring, we have a reference of a database object

    3) in the OnProcessData, we open the database and stuff the value of a Text Object from a field of that database (hence, we change the value but we don't need to read it)

     

    Are you telling me this is a bad way ? Maybe you could help me in doing it better, because we are filling in fact two text objects, thus we are forced to create two connections to the database, which is rather inefficient.

    0
  • Avatar
    Ian Cummings
    Moderator

    Let me get this straight concerning the sub-string in question:

     

    1. Are you setting the value of the sub-string where the OnProcessData script is via the ActiveX application?  Yes or no?  Is the fact that you are controlling BarTender via ActiveX irrelevant to the problem at hand, but just mentioned for information?

     

    2. What is the data source type of the sub-string in question?

     

    3. Can you paste into your reply what you VB script is doing because I don't understand what you're saying there.

    0

Please sign in to leave a comment.