missing ")"
Answered
The stupid compiler, saying that my expression in JavaScript has a missing ")".
Using JavaScript (On click tab).
X1 and Y1 have values and already declared. ggb is ggbApplet
When I put // (as it is a comment), no error generated. So the error is on the line
ggb.evalCommand("ggb.DynamicCoordinates("Pnt",X1,Y1)");
or ggb.evalCommand("ggb.DynamicCoordinates(Pnt,X1,Y1)");
and so many possibilities, all has " missing ")" after arguments "
Where no parenthese is missing.
ggb.evalCommand("ggb.DynamicCoordinates("Pnt",X1,Y1)");
or ggb.evalCommand("ggb.DynamicCoordinates(Pnt,X1,Y1)");
What's your problem? If you use opening brackets you have to put closing brackets too.
In both lines there are two opening brackets and just one closing one...
have you tried ggb.evalCommand("DynamicCoordinates("+Pnt+",X1,Y1)"); ? being Pnt a text
or ggb.evalCommand("DynamicCoordinates(Pnt,X1,Y1)")
ggb.Dynamic...<---> ggbApplet.dynamic.... but dynamic.... is not a JS command
brackets are OK, I think
PD: no creo que el compilador se sienta ofendido por llamarle estupido, pero tampoco veo la necesidad de hacerlo
Please post your .ggb file
Comments have been locked on this page!