S
soni2926
hi,
is it possible to pass a function into another function as a
parameter? Say i have these:
function SaveMe(text)
{...}
function SaveMeNow(text)
{...}
function WhichToSave(x, y, z)
{...}
a button will call WhichToSave, that function will perform some logic
and then call one of the Save methods, can i pass that method in as
say parameter z and have it just call the function right away, passing
one of the SaveMe methods a parameter which is determined by the
WhichToSave method?
Thanks.
is it possible to pass a function into another function as a
parameter? Say i have these:
function SaveMe(text)
{...}
function SaveMeNow(text)
{...}
function WhichToSave(x, y, z)
{...}
a button will call WhichToSave, that function will perform some logic
and then call one of the Save methods, can i pass that method in as
say parameter z and have it just call the function right away, passing
one of the SaveMe methods a parameter which is determined by the
WhichToSave method?
Thanks.