What does Valor have in it at the time that you pass it to your function? If it is empty then it needs to be set before you pass it.
Jim
>Hello all
>I'm having problems to pass parameters to function
>
>I have a function called VerificarValor(Valor)
>
>and i'm call the function in method lostfocus of text1
>
>the datasource is Valor
>
>and i'm doing in text1_lostfocus
>
>VerificarValor(Valor)
>....
>
>But the parameter is empty, if i change to VerificarValor(555) it work fine,
>
>
>What i can do wrong?
>
>thanks
Thanks
Jim