You are not logged in.

  • "sachagriffin" started this thread

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

1

Tuesday, January 3rd 2012, 4:54pm

how to unset a variable?

Source code

1
2
3
ifnot (startscene === null,
blah
)


works when variable is not set, great. So I try to kill it
set(startscene,null);
or
set(startscene,'');
or
set(startscene);

and the above code fails.
So I have to check for
ifnot (startscene === null,
and
ifnot (startscene == null,

?
or is there a way to unset a variable?
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

2

Thursday, January 5th 2012, 11:38am

Hi,

killing/removing a variable is currently not possible,
but I already thinking about adding a "delete(var)" action for that,

best regards,
Klaus

gkaefer

Trainee

Posts: 46

Location: Salzburg

  • Send private message

3

Thursday, January 5th 2012, 12:07pm

Hi,

killing/removing a variable is currently not possible,
but I already thinking about adding a "delete(var)" action for that,

best regards,
Klaus


that would be great.
Currently I have to use for placeholder variables for loops etc something like actionname-i so no interference with similar placeholder variables from other actions can take place ;-)) I dont know how often did fall over my legs here ;-))
a nother big step towards a own programming language could be if variable would be only valid inside an action with option to be exported globally

Liebe Gruesse,
Georg

4

Friday, January 6th 2012, 12:56pm

A "delete(var)"-tag would be great! I make excessive use of variables in my tours and it would be nice to flush all these datas when they´re not of use anymore *smile*

Best regards
Nupsi