setMode int parameter not recognized!!

nat ost shared this question 4 years ago
Answered

Hi!

I am calling the setMode() at the onclick java script (see attached file ggb).

When the button is clicked i get an error "JOIN" is not recognized.


See the page


https://wiki.geogebra.org/e...


That works fine when JOIN is replaced by "2".

How do I get JOIN to be recognized??

Thanks in advance!

Natalia

Best Answer
photo

void setMode(int mode) int<-->integer

try ggbApplet.setMode(15);

Comments (4)

photo
1

Please never mind that on the ggb file attached, the button referees to a segment, not a line. Just a naming mistake :)

photo
1

void setMode(int mode) int<-->integer

try ggbApplet.setMode(15);

photo
1

Hi mathmagic!

Yes, that works fine. The question is weather JOIN is some kind of global variable that is recognized as an int... If so, how do i access it? If not, never mind, I can create this class no problem...

photo
1

Hi nat,

See exemple file

© 2023 International GeoGebra Institute