Hi there,
How can I avoid type-conversion (object variable --> string) when
passing an object variable to a function?
Example:
-->
catch(myerrorob ject)
alert(myerrorob ject.filename);
{
my_function('bl a: ',myerrorobject );
}
<---
I get the "myerrorobject. filename" in the alert-Box, but I get an
"undefined"-error, if I try to access myerrorobject.f ilename (or other
properties) in the function "my_functio n".
Why?
Regards,
Wolfram Heinz
How can I avoid type-conversion (object variable --> string) when
passing an object variable to a function?
Example:
-->
catch(myerrorob ject)
alert(myerrorob ject.filename);
{
my_function('bl a: ',myerrorobject );
}
<---
I get the "myerrorobject. filename" in the alert-Box, but I get an
"undefined"-error, if I try to access myerrorobject.f ilename (or other
properties) in the function "my_functio n".
Why?
Regards,
Wolfram Heinz
Comment