You probably need to use reference parameters.
OcxRoutine(@Cx, @Cy)
Alan
>Hi Everybody,
>
>I am using an OCX control. It is using a routine which returns values in its parameters. How may I call this routine to have the parameters back?
>
>I Wrote
>
Public Cx, Cy
>Cx = 1
>Cy = 1
>
>OcxRoutine(Cx, Cy)
>
>However, after calling the routine the content of Cx and Cy did not change.
>
>What should I do.
>
>Thank you,
>Ali