Error description: Function: missing '('
Bob Rasmussen
brasmussen at earthlink.net
Thu Jan 3 00:42:01 EST 2002
"time" is a reserved word in Transcript, which thinks it's the built-in function "time()", but with a missing set of parentheses.
Brad Allen wrote:
> 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
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list