Click to See Complete Forum and Search --> : function returning value restrictions?


orHor
02-18-2008, 02:29 AM
hi,
I'll try to explain my problem briefly:

when usin this construction:

response.write myFunction(arg)

function myFunction(arg)
...
myFunction = something
end function

my app goes into timeout. it stops responding.
when i change my structure to


call myFunction(arg)

function myFunction(arg)
...
response.write something
end function
everything is ok.

does anybody know why is this? I think there is some problem in passing a value from the function.

is the returning value restricted in some way? i mean length, some special characters etc...

thank you

yamaharuss
02-18-2008, 07:59 AM
Your variable [something] is not defined. Also, are you defining arg?

It would help if you post all your code.

response.write myFunction(arg)

function myFunction(arg)
something = "Hello from "& arg
myFunction = something
end function