Error description: Function: missing '('

Brad Allen omath at airmail.net
Thu Jan 3 00:23:01 EST 2002


This function worked in a HyperCard stack, but now I'm getting a long 
list of errors from it. The parenthesis appear to balance...I've 
tried several formulations of this script and all of them yield the 
same long list of errors. Any thoughts?

function mindLink distance,time
    return (2 * log (distance)) + (time * log (distance) / 5)
end mindLink

  -=-=-=-=-=-=-=-=-=-=-=- Error List =-=-=-=-=-=-=-=-=-=-=-=-=-=-

Error description:  Function: missing '('
return (2 * log (distance)) + (time * log (distance) / 5)
Line: 22 Character: 32
Value:

Error description:  Function: bad form
return (2 * log (distance)) + (time * log (distance) / 5)
Line: 22 Character: 32
Value:

Error description:  Expression: missing ')' before factor
return (2 * log (distance)) + (time * log (distance) / 5)
Line: 22 Character: 31
Value: time

Error description:  return: error in expression
return (2 * log (distance)) + (time * log (distance) / 5)
Line: 22 Character: 31
Value: time

Error description:  Handler: error in command
return (2 * log (distance)) + (time * log (distance) / 5)
Line: 22 Character: 31
Value: time

Error description:  Handler: error in handler
return (2 * log (distance)) + (time * log (distance) / 5)
Line: 22 Character: 31
Value: time

Error description:  Object Name:

Line: 0 Character: 0
Value: stack "/Port/Champions combat copy.rev"








how do I fix the following line of script, which yields the 
mysterious error " Chunk: can't find object"


put the short name of the selectedButton of cd family 1 into damageType

I wondered if maybe the button family didn't convert, so I went ahead 
and set my two radio buttons 



More information about the use-livecode mailing list