Showing results 1 to 6 of 6

Thread: Change variable status

  1. #1
    Join Date
    30.11.2007
    Posts
    13

    Böse Change variable status

    Please, how to change variable status to alternate value, seting alternate value and seting back tu spontanous value ???

    Thanks Miro.

  2. #2
    robertf Gast

    Blinzeln Re: Change variable status

    The Variable Status can be changed with the RecipeGroupManager or VBA.

    Here is an Example how to change the status to Alternatevalue: Alternate Value - ON/OFF

    Public Sub Change2Alternate()
    Dim zVAR As Variable
        
        Set zVAR = thisProject.Variables.Item("WIZ_VAR_10")
        
        Debug.Print zVAR.StatusString
        zVAR.StatusString = "EWERT=1"
    End Sub
    
    
    Public Sub Change2Spontaneous()
    Dim zVAR As Variable
        
        Set zVAR = thisProject.Variables.Item("WIZ_VAR_10")
        
        Debug.Print zVAR.StatusString
        zVAR.StatusString = "EWERT=0"
    End Sub

    With this Code the Status of the variable will be changed, but the variable will not switch to the alternate value!

    If you post some more information about your exactly needs, I may help you better...

  3. #3
    Join Date
    30.11.2007
    Posts
    13

    Lächeln Re: Change variable status

    Thank you.

    My customer want to setting process signal if this signal is wrong (Hand setting).

  4. #4
    robertf Gast

    Default Re: Change variable status

    Does the given VBA Code help you?
    If not please explain what is going wrong!

    I do not exactly understand what you want to do...

  5. #5
    Join Date
    30.11.2007
    Posts
    13

    Default Re: Change variable status

    Your answer is better. Thanks.

  6. #6
    Join Date
    30.11.2007
    Posts
    13

    Default Re: Change variable status

    Please, how to change value of alternate value ??

    Brada.

Similar Threads

  1. Value, Time-Stamp and status with allocations
    By markclemens in forum zenon Supervisor
    Replies: 0
    Last Post: 14th September 2007, 07:57
  2. Replies: 0
    Last Post: 21st August 2007, 08:15

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •