General information
Category:
Coding, syntax & commands
thisform.mya is an object.
thisform.mya.value = 5
so thisform.mya.value is what you are trying to change.
x= (do tempprg with (thisform.mya.value))
thisform.mya.value = x
>Hi.
>I have a simple .prg as follows:
>-------------------------
>Tempprg.prg
>Parameters X
>x=x+1
>Return
>------------------------
>
>If I run following:
>a=5
>Do Tempprg with a -----> Returns 6 Fine
>
>If I do the following in a form:
>Do tempprg with Thisform.Mya (Mya=5)
>..... Thisform.Mya remains as 5
>
>Why is this happening. It happens irrespective of UDFPARMS setting
>It is definitely picking up the Propery value of 5 within the
> prg routine(I have a wait in),
> but is not writing the updated value back to the property.
>
>No I know I can change the .prg into a Method of the form, but I am curious as to why the above code does not work .
>
>Regards,
>
>Gerard
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only