Sie sind nicht angemeldet.

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

1

Dienstag, 26. November 2013, 00:10

Combobox bug or?

When using an action like this to load a title into the combobox, it does not work if you have a comma in the title.

<action name="box7">
plugin[combobox].selectitem (7. Rusland, Danmark og det gottorpske spørgsmål));
</action>

With the comma after Rusland, the title is not loaded in the combobox.

Loading the pano from the combobox gives no problem.
additem('7. Rusland, Danmark og det gottorpske spørgsmål', loadscene('scene_07',null,MERGE,BLEND(3)); );

It took me an hour to figure out this. Can not find it mentioned anywhere but maybe this is some rule all code nerds know.

Hans

2

Dienstag, 26. November 2013, 20:53

Hi,

commas are used as separators for the arguments on action calls - see:
http://krpano.com/docu/actions/#syntaxandusage

But by using quotes around the whole argument (like in the additem example) they can be used - e.g.
plugin[combobox].selectitem ('7. Rusland, Danmark og det gottorpske spørgsmål');

Best regards,
Klaus