Jean-René,
Do you have a filter on any table which might include a 'thisform.MyVariable' as part of a where clause? Or any view or query or other SQL?
Barbara
>From a method of a form I call a function located in a PRG (Library.prg) ex: deleteAccnt(lcID_Cust,lcID_CORP,ID_btn,ID_donnee)
>
>I have a SET PROCEDURE TO LIBRARY.PRG and ON ERROR MYDebug(messages()...) done in my code.
>
>In the function deleteAccnt(), at one point I do a LOCATE FOR ...
>
>The first time I call the function ( only the first time) my ON ERROR is call and I get the error messages "THISFORM can only be call from a method"
>
>I do not use the THISFORM key word in my fonction.
>
>Iny one had this problem?