Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prg Reads but doesnot write form property
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00738120
Message ID:
00738124
Views:
16
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
Map
View

Click here to load this message in the networking platform