Graphics

 View Only
  • 1.  script for hide/show layers

    Posted 02-20-2016 09:05
    Does anyone have a script that can hide/show layers if xxx > xxx then

    Best regards Tue.


  • 2.  RE: script for hide/show layers

    Posted 02-22-2016 17:16
    We've done this a few times here. The script is fairly simple.

    dim valuea as xpTextObject
    dim valueb as xpTextObject
    dim inta as Integer
    dim intb as Integer

    Self.GetObjectByName("Value 1", valuea)
    inta=CInt(valuea.text)
    Self.GetObjectByName("Value 2", valueb)
    intb=CInt(valueb.text)

    if inta > intb then
    'script junk for 1 being larger here
    elseif inta < intb then
    'script junk for 2 being larger here
    else if inta = intb then
    'script junk the two being equal here
    end if

    #XPression