Showing results 1 to 3 of 3

Thread: Dynamic Loading Of Picture

  1. #1
    Join Date
    11.04.2008
    Posts
    40

    Daumen hoch Dynamic Loading Of Picture

    I need to be able to load a picture dynamically depending on a value I bring back from a database. The value will be the name of the picture within Zenon.

    I can pull back the value in the database using VBA, but would then like to load the picture in the same procedure either directly by VBA or using a Function picture switch run in VBA.

    Is this possible, if not is there another way, maybe by loading a string tag with the picture name and then passing this into a function ??

    I currently do this in RSView by using a string variable and using an event to change screens.

    Many thanks

    Graham

  2. #2

    Default Re: Dynamic Loading Of Picture

    Hello,

    please take a look to the Online Help see under "Functions -> Overview Functions -> Picture Functions -> Picture with index .
    I think this is exactly what you are looking for.

    From the Help:
    This function is used to switch to the picture with the name stated in the linked string variable.

    VBA should only be used if there is no other zenon standard way to realize it. But it is of course possible to start a function with VBA.

    In your case it works if you write the name of the picture into a string variable which is linked to the "picture with index" function and start the function through VBA or other triggers like limits,..

    lg,
    wolfgang

  3. #3
    Join Date
    11.04.2008
    Posts
    40

    Daumen hoch Re: Dynamic Loading Of Picture

    Thank You that works exactly as I need it.

Similar Threads

  1. Picture variable list
    By scotttee in forum zenon Supervisor
    Replies: 2
    Last Post: 7th May 2009, 14:14
  2. Replies: 0
    Last Post: 5th January 2009, 15:13
  3. display last open picture
    By dak2483 in forum zenon Operator
    Replies: 3
    Last Post: 5th September 2008, 18:57
  4. action "COMMAND" at the dynamic element not visible
    By markclemens in forum zenon Energy Edition
    Replies: 0
    Last Post: 16th May 2008, 06:53
  5. Referencing variable on a picture
    By madphilly in forum VBA
    Replies: 8
    Last Post: 25th January 2008, 10:57

Posting Rules

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