Checking to see if a variable contains a string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stu Richmond
    New Member
    • Aug 2007
    • 2

    Checking to see if a variable contains a string

    HI can someone please tell me how to check the contents on a variable (which is loading external data) to see if it contains anything. i.e variable "title1"

    if (title1 =="")
    {_root.datahold er.button_1._vi sible = false
    }

    this is how I thought it would work, what am I doing wrong
  • Stu Richmond
    New Member
    • Aug 2007
    • 2

    #2
    Hi Guys,

    I have managed to find it:

    if (title1 == undefined)
    {_root.datahold er.button_1._vi sible = false
    }

    thanks anyway.

    Stu

    Comment

    Working...