Klas,
In addition to Trey's and Rich's suggestion, if you have a field name with the same name as your variable VFP will use the field value instead of the variable value.
Barbara
>Hi,
>
>In VFP3 as well as in FPW26 it seems to be the case that if I send a global variable as a parameter to a procedure, that global variable is dies.
>I have the UDFPARMS set to VALUE and I thought that the procedure would not be able to modify the variables used to send values to the procedure, and even less able to kill it.
>
>If I have missed something it would make life a little easier...