Director lingo Q?

Out of context: Reply #16

  • Started
  • Last post
  • 26 Responses
  • Seph0

    which is exactly what I just did Engage !! you young spark you, and it worked. here it is out of interest :

    on exitFrame me
    if member("thetext").text contains "." then

    myvalue = string (member("thetext").text)
    set charcounter to the number of chars in myvalue

    repeat with i = 1 to charcounter
    if myvalue.char[i] = "." then
    delete myvalue.char[i]
    end if
    end repeat

    if integer(myvalue) = void then
    put "bad value!!!!"
    else
    put "submit!!!"
    end if

    else
    if integer(member("thetext").text) = void then
    put "bad value!!!!"
    else
    put "submit!!!"
    end if
    end if

    end

View thread