You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Taurus

Trainee

  • "Taurus" started this thread

Posts: 137

Location: Belarus

Occupation: photographer & virtual tour developer

  • Send private message

1

Wednesday, March 28th 2018, 10:03pm

SOLVED (about parsing parameters of a text type containing a comma)

Hello Klaus!
thank you for your excellent work

I want to draw your attention to the following

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<action name="act1" >
  txtadd(txt1, 'aaaa', ',', 'bbbb');
  trace(%0,/,txt1);
  act2(get(txt1));
</action>

<action name="act2" >
  trace(%0,/,%1);
</action>




INFO: act1/aaaa,bbbb
INFO: act2/aaaabbbb


The first action executes the call of the second action with the transfer of one text parameter
Parameter parsing is wrong
Perhaps this is a bug?

Thank you

------------------------------------------------------------------------------------------
SOLVED : '%1'
--
in order to comply the word with the affairs, you need to keep quiet and do nothing!

Virtual tour Gomel
Virtual tour
Virtual tour
Elbrus
...

Windows 10x64 & krpano 1.19pr16

This post has been edited 1 times, last edit by "Taurus" (Mar 28th 2018, 10:55pm)


2

Wednesday, March 28th 2018, 11:07pm

Hi,

right, that's because the %N is just a placeholder where the variable content will be inserted.

Here the new localscope actions with the 'args' could help - in this case the arguments will be real variables and such confusion can be avoided:
https://krpano.com/docu/xml/#action.args

Best regards,
Klaus

Taurus

Trainee

  • "Taurus" started this thread

Posts: 137

Location: Belarus

Occupation: photographer & virtual tour developer

  • Send private message

3

Thursday, March 29th 2018, 4:17pm

thanks for the answer, Klaus

the second method is not always acceptable, the use of %N gives many possibilities!

Thanks for the update pr15! *thumbsup*
--
in order to comply the word with the affairs, you need to keep quiet and do nothing!

Virtual tour Gomel
Virtual tour
Virtual tour
Elbrus
...

Windows 10x64 & krpano 1.19pr16

Similar threads