>>
>>Antonio,
>>
>>Wow, how difficult can this be??
>>Now erroring: ToForm is not an object ;(
>>
>>suppose I must work with the pubic variables, which worked. ;((
>>
>>regards,
>>
>>Koen
>
>If VFP is complaining on toForm not being an object, then the problem is in the way you're calling the menu.
>
>It must be:
>
>
>DO the-name-of-the-menu.mpr WITH Thisform
>
>
>if inside a method/event code of the form or one of its objects, or with an explicit reference to the form in other cases.
>
>Otherwise, toForm is an .F., as any other unused but declared parameter.
Antonio,
Thanks a lot for your correct remarks. Shortcut menu now works perfectly and I got rid of those public-variables.
Regards,
Koen