setCaption - unknown command

Morten Langwadt Christensen shared this problem 9 months ago
Not a Problem

Hi.

I made an interactive worksheet in classic5, and it works just fine. among other things, i scripted it to change the caption of a point.

When I upload it on geogebra.org, and run it, i get an errormessage with "UnknownCommand: setCaption".

Has the setCaption command been removed from the online version?

the line of code is:

setCaption(tekst1,"Hvilket koordinatsæt får "+punkt+" når trekanten spejles i "+akse+"-aksen?")

questions:

does concatenation work differently in version 6 than in version 5?

does it make a difference if half the script is with danish commands?

original file is attached, online version is at https://www.geogebra.org/m/y2fvj5x7

thanks,

Morten Christensen

Comments (2)

photo
1

The English command is SetCaption() with capitals is well for S as for C in it!

The Danish command seems to be VælgUndertekst( ).

chris

photo
1

Okay, thanks.

I thought the autocomplete in classic 5 worked on all commands. Maybe it misses the SetCaption command... I'll try to change it and see if it works.

Thanks.

photo
© 2020 International GeoGebra Institute