What type is the variable amount?
What method are you calling?

--- Update ---

OK

I see you have managed to solve your problem and ask another question in a new thread. Thanks for letting us...